aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_options_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* 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
* moving country helpers from form_options_helper to form_country_helper againSven Fuchs2008-07-161-74/+1
|
* Ensure :index works with fields_for select methods. [#518 state:resolved]rsl2008-07-141-4/+4
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Remove unused local_binding option to InstanceTag's ConstructorMichael Koziarski2008-07-031-4/+4
|
* Fix indentation and update changelogs for previous commitgbuesing2008-06-291-2/+2
|
* Added support for regexp matching of priority zones in time_zone_select ↵Ernie Miller2008-06-291-2/+9
| | | | [#195 state:resolved]
* TimeZone -> ActiveSupport::TimeZone. [#387 state:resolved]Ruy Asan2008-06-111-2/+2
|
* Merge docrails.Pratik Naik2008-05-251-21/+19
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* time_zone_select docs: explain priority zones option. Add example showing a ↵gbuesing2008-05-181-0/+8
| | | | custom set of priority zones.
* Improve documentation coverage and markupXavier Noria2008-05-021-2/+2
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Docfixes (closes #11356, #11172, #10523)David Heinemeier Hansson2008-03-201-0/+15
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9064 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add :default option to time_zone_select. Closes #10590.Jeremy Kemper2007-12-211-1/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8473 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove Great Britain from the Country select helper to ensure consistency ↵Michael Koziarski2007-12-051-2/+1
| | | | | | with iso 3166's long_names. Closes #6872 [Koz] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8277 5ecf4fe2-1ee6-0310-87b1-e25e094e27de