aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers
Commit message (Collapse)AuthorAgeFilesLines
...
* Update script.aculo.us scripts to fix some bugs #1515David Heinemeier Hansson2005-06-263-20/+31
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1528 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Renamed remote_sortable to sortable_elementDavid Heinemeier Hansson2005-06-261-2/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1526 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added auto_complete_for to controller and text_field_with_auto_complete to ↵David Heinemeier Hansson2005-06-261-16/+55
| | | | | | view to make it really, really easy to do Google Suggest style interfaces git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1525 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added script.aculo.us Javascripts (controls.js, dragdrop.js, effects.js) ↵David Heinemeier Hansson2005-06-265-188/+1533
| | | | | | (NEEDS MORE DESCRIPTION) #1509 [Thomas Fuchs] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1522 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed prototype to consider all fields it doesn't know as text (such as ↵David Heinemeier Hansson2005-06-251-4/+2
| | | | | | Safari's search) just like the browser in its serialization #1497 [Sean Treadway] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1503 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added TextHelper#word_wrap(text, line_length = 80) #1449 [tuxie@dekadance.se]David Heinemeier Hansson2005-06-211-0/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1465 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added a fall-through action for form_remote_tag that'll be used in case ↵David Heinemeier Hansson2005-06-211-0/+8
| | | | | | Javascript is unavailable #1459 [Scott Barron] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1464 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added tag_options as a third parameter to ↵David Heinemeier Hansson2005-06-211-4/+9
| | | | | | AssetHelper#auto_discovery_link_tag to control options like the title of the link #1430 [kevin.clark@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1460 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added option to pass in parameters to CaptureHelper#capture, so you can ↵David Heinemeier Hansson2005-06-211-5/+7
| | | | | | create more advanced view helper methods #1466 [duane.johnson@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1459 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Changed the default name of the input tag generated by ↵David Heinemeier Hansson2005-06-211-1/+1
| | | | | | FormTagHelper#submit_tag from "submit" to "commit" so it doesnt clash with form.submit() calls in Javascript #1271 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1456 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r1335@iwill: jeremy | 2005-06-17 11:41:50 -0700Jeremy Kemper2005-06-171-7/+12
| | | | | | | | | | | | | Ticket 1458 - distance_of_time_in_words r1336@iwill: jeremy | 2005-06-17 11:44:50 -0700 Update changelog r1337@iwill: jeremy | 2005-06-17 11:45:44 -0700 Applied patch. r1361@iwill: jeremy | 2005-06-17 11:48:02 -0700 Merge changelog git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1449 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added cuba to country list #1351 [todd]David Heinemeier Hansson2005-06-161-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1440 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed radio_button to work with numeric values #1352 [demetrius]David Heinemeier Hansson2005-06-161-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1439 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added :extension option to NumberHelper#number_to_phone #1361 [delynnb]David Heinemeier Hansson2005-06-161-10/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1438 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added button_to as a form-based solution to deal with harmful actions that ↵David Heinemeier Hansson2005-06-161-1/+92
| | | | | | should be hidden behind POSTs. This makes it just as easy as link_to to create a safe trigger for actions like destroy, although it's limited by being a block element, the fixed look, and a no-no inside other forms. #1371 [tom@moertel.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1437 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed image_tag so an exception is not thrown just because the image is ↵David Heinemeier Hansson2005-06-161-1/+1
| | | | | | missing and alt value can't be generated #1395 [Marcel] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1434 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added a third parameter to TextHelper#auto_link called href_options for ↵David Heinemeier Hansson2005-06-161-5/+8
| | | | | | specifying additional tag options on the links generated #1401 [tyler.kovacs@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1432 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed TextHelper#highlight to return the text, not nil, if the phrase is ↵David Heinemeier Hansson2005-06-161-1/+1
| | | | | | blank #1409 [patrick@lenz.sh] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1429 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Its Iraq, not Irak #1443 [ivan]David Heinemeier Hansson2005-06-161-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1427 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed TagHelper such that :name and 'name' keys in the options doesn't ↵David Heinemeier Hansson2005-06-161-2/+1
| | | | | | result in two attributes #1455 [take_tk] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1426 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow distance_of_time_in_words to work with any value that responds to ↵Jamis Buck2005-06-141-0/+2
| | | | | | #to_time (like dates) #969 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1420 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r2495@sedna: jeremy | 2005-05-27 22:07:18 -0700Jeremy Kemper2005-06-121-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Branch to have scaffold use new render methods r2496@sedna: jeremy | 2005-05-28 10:50:51 -0700 axe unused process_request method r2497@sedna: jeremy | 2005-05-28 10:51:58 -0700 sanity assertions in process method check that @controller, @request, @response are set r2498@sedna: jeremy | 2005-05-28 10:53:42 -0700 clean up escaping. use instance_variable_get instead of instance_eval. put id in form action instead of hidden input (like the generated scaffolding) r2499@sedna: jeremy | 2005-05-28 10:54:46 -0700 clean up interpolation, remove tabs from stylesheet r2500@sedna: jeremy | 2005-05-28 10:56:40 -0700 modernize dynamic scaffolding. use params[:id] instead of @params[id]. use consolidated render method instead of render_action, render_file, etc. use builtin inflections rather than module methods. r2501@sedna: jeremy | 2005-05-28 11:00:26 -0700 modernize generated scaffolding. use new-style assertions; use params[:id] instead of @params[id]; use consolidated render method instead of render_* r2542@sedna: jeremy | 2005-06-12 02:24:06 -0700 use :id => model instead of :id => model.id. clean up the form helper method. use flash[:notice] instead of flash['notice']. r2543@sedna: jeremy | 2005-06-12 02:33:22 -0700 whitespace r2544@sedna: jeremy | 2005-06-12 02:56:57 -0700 update changelogs r2545@sedna: jeremy | 2005-06-12 03:26:23 -0700 test dynamic form help when @post is not a new record r2546@sedna: jeremy | 2005-06-12 03:44:14 -0700 touch up TestCase#process sanity assertions git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1404 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed escaping of :method option in remote_form_tag #1218 [Rick Olson]David Heinemeier Hansson2005-05-191-1/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1328 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Serbia and Montenegro to the country_select #1239 [todd@robotcoop.com]David Heinemeier Hansson2005-05-191-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1323 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that compute_public_path should recognize external URLs, so ↵David Heinemeier Hansson2005-05-191-1/+1
| | | | | | image_tag("http://www.example.com/images/icon.gif") is not prefixed with the relative url path #1254 [victor-ronr-trac@carotena.net] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1321 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added support for descending year values in DateHelper#select_year, like ↵David Heinemeier Hansson2005-05-191-6/+10
| | | | | | select_year(Date.today, :start_year => 2005, :end_year => 1900), which would count down from 2005 to 1900 instead of the other way #1274 [nwoods@mail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1320 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ajax docing #1282 [Dee.Zsombor@gmail.com]David Heinemeier Hansson2005-05-191-0/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1318 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that FormHelper#checkbox should return a checked checkbox if the value ↵David Heinemeier Hansson2005-05-191-0/+2
| | | | | | is the same as checked_value #1286 [Florian Weber] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1317 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed Form.disable in Prototype #1317 [Wintermute]David Heinemeier Hansson2005-05-191-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1311 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Go straight to the class for asset_hostDavid Heinemeier Hansson2005-05-091-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1299 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added TextHelper#sanitize that can will remove any Javascript handlers, ↵David Heinemeier Hansson2005-05-091-0/+55
| | | | | | blocks, and forms from an input of HTML. This allows for use of HTML on public sites, but still be free of XSS issues. #1277 [Jamis Buck] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1298 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Changed RAILS_ASSET_HOST to become ActionController::Base.asset_hostDavid Heinemeier Hansson2005-05-061-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1289 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that both AssetHelper#stylesheet_link_tag and ↵David Heinemeier Hansson2005-05-031-2/+7
| | | | | | AssetHelper#javascript_include_tag now accept an option hash as the last parameter, so you can do stuff like: stylesheet_link_tag "style", :media => "all" git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1281 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added FormTagHelper#image_submit_tag for making submit buttons that uses imagesDavid Heinemeier Hansson2005-05-031-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1280 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added the option of specifying a RAILS_ASSET_HOST that will then be used by ↵David Heinemeier Hansson2005-05-031-2/+2
| | | | | | all the asset helpers. This enables you to easily offload static content like javascripts and images to a separate server tuned just for that. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1279 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dont benchmark if the logger has been turned offDavid Heinemeier Hansson2005-05-021-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1269 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed documentation #1214David Heinemeier Hansson2005-04-301-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1254 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed missing id uniqueness in FormTag#radio_button #1207 [Jarkko]David Heinemeier Hansson2005-04-301-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1253 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added BenchmarkHelper that can measure the execution time of a block in a ↵David Heinemeier Hansson2005-04-271-0/+22
| | | | | | template and reports the result to the log git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1240 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update to Prototype 1.2.1Sam Stephenson2005-04-191-3/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1228 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* More documentation #1148 [Alisdair McDiarmid]David Heinemeier Hansson2005-04-191-2/+28
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1226 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that you can now pass an alternative :href option to ↵David Heinemeier Hansson2005-04-181-3/+3
| | | | | | link_to_function/remote in order to point to somewhere other than # if the javascript fails or is turned off. You can do the same with form_remote_tag by passing in :action. #1113 [Sam Stephenson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1200 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update to Prototype 1.2.0Sam Stephenson2005-04-181-87/+192
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1198 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed DateHelper to return values on the option tags such that they'll work ↵David Heinemeier Hansson2005-04-172-15/+15
| | | | | | properly in IE with form_remote_tag #1024 [rscottmace@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1184 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed FormTagHelper#check_box to respect checked #1049 [DelynnB]David Heinemeier Hansson2005-04-171-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1183 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Element.toggle, Element.show, and Element.hide to the prototype ↵David Heinemeier Hansson2005-04-172-15/+28
| | | | | | javascript library. Toggle.display has been deprecated, but will still work #992 [Lucas Carlson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1181 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added AssetTagHelper#image_path, AssetTagHelper#javascript_path, and ↵David Heinemeier Hansson2005-04-171-5/+27
| | | | | | AssetTagHelper#stylesheet_path #1110 [Larry Halff] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1176 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added submit_to_remote that allows you to trigger an Ajax form submition at ↵David Heinemeier Hansson2005-04-131-0/+14
| | | | | | the click of the submission button, which allows for multiple targets in a single form through the use of multiple submit buttons #930 [yrashk@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1160 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added :confirm option to link_to_remote just like link_to has #1082 ↵David Heinemeier Hansson2005-04-131-1/+2
| | | | | | [yrashk@fp.org.ua] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1156 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added minute_step as an option to select_minute (and the helpers that use ↵David Heinemeier Hansson2005-04-131-1/+2
| | | | | | it) to jump in larger increments than just 1 minute. At 15, it would return 0, 15, 30, 45 options #1085 [ordwaye@evergreen.edu] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1154 5ecf4fe2-1ee6-0310-87b1-e25e094e27de