aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_options_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add documentation to object method of CollectionHelpers::BuilderRafael Mendonça França2012-02-261-6/+6
|
* refactor option_text_and_value and option_value_selected? methodsVasiliy Ermolovich2012-02-211-10/+3
|
* refactor time_zone_options_for_selectVasiliy Ermolovich2012-02-211-7/+8
| | | | | | | | | | | | | | | BTW, select works quite faster then find_all: require 'benchmark' n = [1]*100_000_000 Benchmark.bm do |x| x.report { n.select { |a| a > 1 } } x.report { n.find_all { |a| a > 1 } } end user system total real 7.590000 0.010000 7.600000 ( 7.927171) 9.650000 0.010000 9.660000 ( 9.634406)
* refactor options_for_selectVasiliy Ermolovich2012-02-201-7/+8
|
* refactor grouped_options_for_selectVasiliy Ermolovich2012-02-201-5/+5
|
* Remove default class to collection_check_boxes andRafael Mendonça França2012-02-021-8/+8
| | | | | | collection_radio_buttons [Carlos Antonio da Silva + Rafael Mendonça França]
* Allow collection radio_buttons/check_boxes to access current text/valueCarlos Antonio da Silva2012-02-021-0/+14
| | | | [Carlos Antonio da Silva + Rafael Mendonça França]
* Add changelog, docs and guides entriesCarlos Antonio da Silva2012-02-021-17/+63
| | | | [Carlos Antonio da Silva + Rafael Mendonça França]
* Allow proc for value/text method in collection_selectCarlos Antonio da Silva2012-02-021-2/+6
| | | | | | And options_from_collection_for_select as well. [Carlos Antonio da Silva + Rafael Mendonça França]
* Move collection radio buttons / check boxes back to FormOptionsHelperCarlos Antonio da Silva2012-02-021-0/+75
| | | | [Carlos Antonio da Silva + Rafael Mendonça França]
* Cleanup options helper methods a bitCarlos Antonio da Silva2012-02-021-12/+12
| | | | [Carlos Antonio da Silva + Rafael Mendonça França]
* Refactor option groups to use content_tagCarlos Antonio da Silva2012-02-021-4/+4
| | | | [Carlos Antonio da Silva + Rafael Mendonça França]
* Move collection_check_boxes and collection_radio_buttons to they ourRafael Mendonça França2012-02-021-8/+0
| | | | | | module [Carlos Antonio da Silva + Rafael Mendonça França]
* Add collection_check_boxes helperCarlos Antonio da Silva2012-02-021-0/+4
| | | | [Carlos Antonio da Silva + Rafael Mendonça França]
* Create collection_radio_buttons helperCarlos Antonio da Silva2012-02-021-0/+4
| | | | [Carlos Antonio da Silva + Rafael Mendonça França]
* Remove eval calls, use send.. eval is evilCarlos Antonio da Silva2012-01-311-3/+3
|
* remove extra 'the'Rohit Arondekar2012-01-251-1/+1
|
* Do not need of ActionView::Helpers scope since we are insideRafael Mendonça França2012-01-171-4/+4
| | | | ActionView::Helpers
* Extract TimeZoneSelectRafael Mendonça França2012-01-171-34/+1
|
* Extract GroupedCollectionSelectRafael Mendonça França2012-01-171-7/+1
|
* Extract CollectionSelectRafael Mendonça França2012-01-171-9/+1
|
* Extract SelectRafael Mendonça França2012-01-171-18/+1
|
* Whitespaces :scissors:Rafael Mendonça França2012-01-051-5/+4
|
* Refactor extract_selected_and_disabledRafael Mendonça França2012-01-051-1/+2
|
* Change more Array.wrap to Kernel#ArrayRafael Mendonça França2012-01-051-2/+2
|
* 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
| |