aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/form_options_helper_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Make :prompt work as documentedRafael Mendonça França2012-05-161-0/+7
|
* Test deprecation and fix the documentation of grouped_options_for_selectRafael Mendonça França2012-05-161-2/+2
|
* Add separator argument to grouped_options_for_selectGreenie05062012-05-151-2/+27
| | | | Change prompt to options hash in grouped_options_for_select
* Do not add `:include_blank` option if prompt is presentRafael Mendonça França2012-05-131-0/+7
|
* Only set `:include_blank` if the value of this options is not presentRafael Mendonça França2012-05-131-0/+6
|
* `:include_blank` should be true if the size option is nilRafael Mendonça França2012-05-131-14/+22
|
* Always include the options :include_blank if the select has a required attributeangelo giovanni capilleri2012-05-131-0/+21
| | | | and display size 1 and not multiple attribute, Fixes #5908
* add 'include_hidden' option to select tag, closes #5402Vasiliy Ermolovich2012-03-131-0/+8
|
* fix output safety issue with select optionsSergey Nartimov2012-02-201-1/+8
|
* refactor options_for_selectVasiliy Ermolovich2012-02-201-16/+16
|
* add selected and disabled option to grouped selectVasiliy Ermolovich2012-02-181-0/+18
|
* Allow proc for value/text method in collection_selectCarlos Antonio da Silva2012-02-021-10/+42
| | | | | | And options_from_collection_for_select as well. [Carlos Antonio da Silva + Rafael Mendonça França]
* Fix inconsistent ability to use a range as choices for select_tag.Jeremy Walker2012-01-211-0/+16
|
* Ensure option for select helper responds to `#first` before comparison.Brian Rose2011-12-201-0/+18
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* properly handle lists of lists. Thanks @adrianpike for reporting!Aaron Patterson2011-10-251-0/+9
|
* just check to see that the first item in the list is an arrayAaron Patterson2011-10-071-0/+9
|
* Grouped select helperAndrew Radev2011-07-111-0/+36
| | | | FormBuilder#select now works with a nested data structure.
* Fixed ActionView::FormOptionsHelper#select with :multiple => falseBogdan Gusiev2011-06-301-0/+7
|
* Fixing select[multiple] html specification problem.Bogdan Gusiev2011-06-081-2/+18
| | | | Generating hidden input with same name before each multiple select
* Remove `#among?` from Active SupportPrem Sichanugrist2011-04-131-1/+1
| | | | | | After a long list of discussion about the performance problem from using varargs and the reason that we can't find a great pair for it, it would be best to remove support for it for now. It will come back if we can find a good pair for it. For now, Bon Voyage, `#among?`.
* Change Object#either? to Object#among? -- thanks to @jamesarosen for the ↵David Heinemeier Hansson2011-04-121-1/+1
| | | | suggestion!
* Using Object#in? and Object#either? in various placesPrem Sichanugrist2011-04-111-1/+2
| | | | There're a lot of places in Rails source code which make a lot of sense to switching to Object#in? or Object#either? instead of using [].include?.
* added failing test for fields_for with a record object that inherits from HashDiego Carrion2011-03-061-0/+19
| | | | Signed-off-by: Andrew White <andyw@pixeltrix.co.uk>
* Improve select helpers by allowing a selected value of false. This is ↵John Allison2011-01-091-8/+24
| | | | useful when using a select helper with a boolean attribute, and the attribute is false. (e.g. f.select :allow_comments)
* select tags coerce the :selected option, options to strings before ↵Subba Rao Pasupuleti2010-08-151-0/+62
| | | | | | comparison [#5056 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Making time_zone_options_for_select return a html_safe stringMikel Lindsaar2010-08-151-0/+4
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-6/+6
| | | | 's/[ \t]*$//' -i {} \;)
* select :include_blank or :prompt should return escaped string [#5099 ↵Ivan Torres2010-07-181-0/+23
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* option_groups_from_collection_for_select should return HTML-safe string ↵Wincent Colaiuta2010-06-191-18/+12
| | | | | | [#4879 state:resolved] Signed-off-by: Xavier Noria <fxn@hashref.com>
* added support for html attributes in options_for_select [#2165]pleax2010-05-161-0/+56
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Mark the result of grouped_options_for_select as HTML safe [#4322 ↵Kieran Pilkington2010-04-161-0/+4
| | | | | | state:committed] Signed-off-by: Xavier Noria <fxn@hashref.com>
* Make form helpers work with <%= wycats2010-03-091-11/+11
|
* Restore split between require-time and runtime load path mungery. Simplifies ↵Jeremy Kemper2009-09-241-1/+1
| | | | vendor requires.
* Rollback AS bundler work and improve activation of vendored dependenciesJoshua Peek2009-09-131-1/+1
|
* Introduce grouped_collection_select helper.codeape2009-08-091-0/+34
| | | | | | [#1249 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Allow strings to be sent as collection to select.José Valim2009-05-151-0/+22
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Enhanced form option helpers to add support for disabled option tags and use ↵Tekin Suleyman2009-02-141-0/+84
| | | | | | of anonymous functions for specifying selected and disabled values from collections. Signed-off-by: Michael Koziarski <michael@koziarski.com>
* DRY up form option helper testsTekin Suleyman2009-02-141-78/+19
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Bump mocha requirement for Ruby 1.9 compat. Remove uses_mocha.Jeremy Kemper2009-02-031-600/+598
|
* Added grouped_options_for_select helper method for wrapping option tags in ↵Jon Crawford2009-01-291-0/+26
| | | | | | optgroups. [#977 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ensure selected option is not ignored for collection_select. [#1037 ↵Daniel Rodríguez Troitiño2009-01-281-0/+16
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fix dangling tzinfo dependencyJeremy Kemper2008-11-231-1/+2
|
* moving country helpers from form_options_helper to form_country_helper againSven Fuchs2008-07-161-1539/+0
|
* Ensure :index works with fields_for select methods. [#518 state:resolved]rsl2008-07-141-0/+885
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* use mocha for TimeZone mocking in Form Options helper testsrick2008-07-021-504/+495
|
* Added support for regexp matching of priority zones in time_zone_select ↵Ernie Miller2008-06-291-0/+18
| | | | [#195 state:resolved]
* Silence TimeZone warningPratik Naik2008-06-111-2/+2
|
* Fix FormOptionsHelper tests.Jan De Poorter2008-06-111-5/+5
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Use output_buffer reader and writer methods exclusively instead of hitting ↵Jeremy Kemper2008-06-081-15/+9
| | | | the instance variable so others can override the methods.
* Work with @output_buffer instead of _erboutJeremy Kemper2008-06-021-9/+9
|