aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_options_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Check for response to `#last` instead of `#first`.Brian Rose2011-12-201-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Ensure option for select helper responds to `#first` before comparison.Brian Rose2011-12-201-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* scumbag 1.8: strings are enumerable :'(Aaron Patterson2011-10-261-1/+1
|
* properly handle lists of lists. Thanks @adrianpike for reporting!Aaron Patterson2011-10-251-1/+6
|
* just check to see that the first item in the list is an arrayAaron Patterson2011-10-071-1/+1
|
* Improve performance and memory usage for options_for_select with Ruby 1.8.7Christos Zisopoulos2011-07-271-2/+2
|
* Grouped select helperAndrew Radev2011-07-111-2/+12
| | | | FormBuilder#select now works with a nested data structure.
* Select tag helpers: remove some code dupsBogdan Gusiev2011-06-171-25/+10
|
* Fixing select[multiple] html specification problem.Bogdan Gusiev2011-06-081-6/+37
| | | | Generating hidden input with same name before each multiple select
* Added missing quote in grouped_options_for_select examplediego2011-05-261-1/+1
|
* Remove extra white spaces on ActionPack docs.Sebastian Martinez2011-05-231-4/+4
|
* Follow code conventions on docsSebastian Martinez2011-05-101-2/+2
|
* Improve select helpers by allowing a selected value of false. This is ↵John Allison2011-01-091-1/+1
| | | | useful when using a select helper with a boolean attribute, and the attribute is false. (e.g. f.select :allow_comments)
* Call html_escape in ERB::Util module and don't mix it in in the helpersSantiago Pastorino2010-10-181-6/+6
|
* fixing an error in the rdocAaron Patterson2010-10-151-1/+1
|
* removing useless codeAaron Patterson2010-09-291-1/+0
|
* convert inject to map + joinAaron Patterson2010-09-281-5/+5
|
* select tags coerce the :selected option, options to strings before ↵Subba Rao Pasupuleti2010-08-151-9/+12
| | | | | | 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-1/+1
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-8/+8
| | | | 's/[ \t]*$//' -i {} \;)
* removing a lolinjectAaron Patterson2010-08-131-2/+2
|
* select :include_blank or :prompt should return escaped string [#5099 ↵Ivan Torres2010-07-181-3/+3
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Merge remote branch 'rails/master'Xavier Noria2010-06-201-1/+1
|\ | | | | | | | | Conflicts: actionpack/lib/abstract_controller/base.rb
| * option_groups_from_collection_for_select should return HTML-safe string ↵Wincent Colaiuta2010-06-191-1/+1
| | | | | | | | | | | | [#4879 state:resolved] Signed-off-by: Xavier Noria <fxn@hashref.com>
* | Adds title and description where needed.Rizwan Reza2010-06-161-0/+1
| |
* | Fix a bunch of minor spelling mistakesEvgeniy Dolzhenko2010-06-111-2/+2
|/
* added support for html attributes in options_for_select [#2165]pleax2010-05-161-2/+25
| | | | 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-1/+1
| | | | | | state:committed] Signed-off-by: Xavier Noria <fxn@hashref.com>
* Stray carrier returnsDavid Heinemeier Hansson2010-04-091-2/+0
|
* adds missing requires for Object#blank? and Object#present?Xavier Noria2010-03-281-0/+1
|
* Merge remote branch 'mainstream/master'Pratik Naik2010-03-121-3/+4
|\ | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/base.rb railties/lib/rails/configuration.rb railties/lib/rails/log_subscriber.rb
| * Make form helpers work with <%= wycats2010-03-091-0/+2
| |
| * content_tag should escape its inputBruno Michel2010-02-141-3/+2
| | | | | | | | Signed-off-by: Yehuda Katz <yehudakatz@YK.local>
* | Merge remote branch 'mainstream/master'Pratik Naik2010-02-011-1/+1
|\|
| * For performance reasons, you can no longer call html_safe! on Strings. ↵Yehuda Katz2010-01-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Instead, all Strings are always not html_safe?. Instead, you can get a SafeBuffer from a String by calling #html_safe, which will SafeBuffer.new(self). * Additionally, instead of doing concat("</form>".html_safe), you can do safe_concat("</form>"), which will skip both the flag set, and the flag check. * For the first pass, I converted virtually all #html_safe!s to #html_safe, and the tests pass. A further optimization would be to try to use #safe_concat as much as possible, reducing the performance impact if we know up front that a String is safe.
* | removes unnecessary curlies in collection_select rdocXavier Noria2010-01-281-1/+1
|/
* Use helpers.label instead of views.labels.José Valim2010-01-071-1/+1
|
* Switch to on-by-default XSS escaping for rails.Michael Koziarski2009-10-081-1/+1
| | | | | | | | | | | | This consists of: * String#html_safe! a method to mark a string as 'safe' * ActionView::SafeBuffer a string subclass which escapes anything unsafe which is concatenated to it * Calls to String#html_safe! throughout the rails helpers * a 'raw' helper which lets you concatenate trusted HTML from non-safety-aware sources (e.g. presantized strings in the DB) * New ERB implementation based on erubis which uses a SafeBuffer instead of a String Hat tip to Django for the inspiration.
* I18n: use I18n for select helpers' prompt textAkira Matsuda2009-08-261-1/+2
| | | | | | [#2252 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Revert "I18n: use I18n for select helpers' prompt text"Jeremy Kemper2009-08-261-2/+1
| | | | | | | | Broke CI. [#2252 state:open] This reverts commit adedf72821a5623227ce91e6b298838e692477e4.
* I18n: use I18n for select helpers' prompt textAkira Matsuda2009-08-261-1/+2
| | | | | | [#2252 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Introduce grouped_collection_select helper.codeape2009-08-091-0/+67
| | | | | | [#1249 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Merge docrailsPratik Naik2009-07-251-21/+21
|
* Allow strings to be sent as collection to select.José Valim2009-05-151-0/+2
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Updated rdoc to reflect changes to form option helpersTekin Suleyman2009-02-141-11/+61
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#837 state:committed]
* Enhanced form option helpers to add support for disabled option tags and use ↵Tekin Suleyman2009-02-141-4/+31
| | | | | | of anonymous functions for specifying selected and disabled values from collections. Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Added grouped_options_for_select helper method for wrapping option tags in ↵Jon Crawford2009-01-291-0/+56
| | | | | | 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-1/+2
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Merge docrailsPratik Naik2008-12-191-5/+13
|
* Remove the country_select helper.Michael Koziarski2008-09-181-3/+0
| | | | | | | | We're in no position to mediate disputes on this matter, and the previous change to use ISO 3166 has offended just as many people as the ad-hoc list did. If you want the old list back you can install the plugin: ruby script/plugin install git://github.com/rails/country_select.git