aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_options_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Major improvement to the documentation for the options / select form ↵Michael Koziarski2007-08-051-31/+73
| | | | | | helpers. Closes #9038 [kampers, jardeon, wesg] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7276 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* select :include_blank option can be set to a string instead of true, which ↵Jeremy Kemper2007-05-181-6/+25
| | | | | | just uses an empty string. Closes #7664. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6763 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* form_options_helper refactoring for clarity. Closes #7787.Jeremy Kemper2007-03-111-17/+26
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6377 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use a consistent load path to avoid double requires. Fix some scattered Ruby ↵Jeremy Kemper2007-01-281-1/+1
| | | | | | warnings. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6057 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed FormOptionsHelper#select to respect :selected value (closes #5813)David Heinemeier Hansson2006-09-041-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4995 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecation: update docs. Closes #5998.Jeremy Kemper2006-09-011-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4898 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Excise ingrown code from FormOptionsHelper#options_for_select. Closes #5008.Jeremy Kemper2006-05-091-2/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4331 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Refactor various InstanceTag instance method to class methods. Closes #4800. ↵Marcel Molina2006-04-251-0/+4
| | | | | | [skaes@web.de] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4272 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introduce :selected option to the select helper. Allows you to specify a ↵Jeremy Kemper2005-11-231-2/+6
| | | | | | selection other than the current value of object.method. Specify :selected => nil to leave all options unselected. Closes #2991. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3174 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* FormHelper correctly passes its object through select, collection_select, ↵Jeremy Kemper2005-11-221-4/+4
| | | | | | country_select, and time_zone_select. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3156 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Correct time_zone_options_for_select docs. Closes #2892.Jeremy Kemper2005-11-161-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3062 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added FormHelper#form_for and FormHelper#fields_for that makes it easier to ↵David Heinemeier Hansson2005-11-131-0/+18
| | | | | | work with forms for single objects also if they don't reside in instance variables [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3003 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* options_for_select allows any objects which respond_to? :first and :last ↵Jeremy Kemper2005-11-101-1/+1
| | | | | | rather than restricting to Array and Range. Closes #2824. References [2126]. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2977 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix docs (closes #2725)David Heinemeier Hansson2005-11-071-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2906 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Misc doc fixes (typos/grammar/etc). Closes #2445.Marcel Molina2005-10-121-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2537 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Updated the options_for_select to deal with the fact that Strings now ↵David Heinemeier Hansson2005-09-031-1/+1
| | | | | | implement :first git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2126 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added :prompt option to FormOptions#select (and the users of it, like ↵David Heinemeier Hansson2005-07-031-7/+15
| | | | | | FormOptions#select_country etc) to create "Please select" style descriptors #1181 [Michael Schuerig] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1646 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
* 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
* 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
* 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 DateHelper to return values on the option tags such that they'll work ↵David Heinemeier Hansson2005-04-171-4/+4
| | | | | | 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 options_for_select on selected line issue #624 [Florian Weber]David Heinemeier Hansson2005-03-151-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@911 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that form helpers would treat string and symbol keys differently in ↵David Heinemeier Hansson2005-03-061-23/+27
| | | | | | html_options (and possibly create duplicate entries) #112 [bitsweat] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@833 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed TimeZone issues in action-pack and active-support #704David Heinemeier Hansson2005-02-231-6/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@776 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added FormOptionsHelper#time_zone_select and ↵David Heinemeier Hansson2005-02-231-2/+55
| | | | | | FormOptionsHelper#time_zone_options_for_select to work with the new value object TimeZone in Active Record #688 [Jamis Buck] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@759 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Afghanistan (no more conspiracy!) to FormOptions#country_select and ↵David Heinemeier Hansson2005-02-191-1/+1
| | | | | | FormOptions#country_options_for_select git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@696 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* One comma too muchDavid Heinemeier Hansson2005-02-191-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@690 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Iran and Irak to the countries list used by FormOptions#country_select ↵David Heinemeier Hansson2005-02-191-2/+10
| | | | | | and FormOptions#country_options_for_select git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@686 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Documentation on :include_blank #579David Heinemeier Hansson2005-02-171-0/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@654 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed documentation snafus #575, #576, #577, #585David Heinemeier Hansson2005-02-071-6/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@525 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added the option of passing a block to ActiveRecordHelper#form in order to ↵David Heinemeier Hansson2005-01-151-2/+1
| | | | | | add more to the auto-generated form #469 [dom@sisna.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@422 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Documented select, collection_select, and country_select #304 [Ulysses]David Heinemeier Hansson2004-12-151-3/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@163 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* InitialDavid Heinemeier Hansson2004-11-241-0/+212
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4 5ecf4fe2-1ee6-0310-87b1-e25e094e27de