aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_options_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Clarify grouped_options_for_select method API, add changelog entryCarlos Antonio da Silva2012-05-191-14/+13
| | | | | | | | | | | | Make the method API more clear by explicitly showing the expected arguments. This means that the options cannot be passed as second argument because we are not relying on extract_options! anymore, you are expected to give a selected key or `nil` if you want to pass options, as it is the last argument. Notice that this does not change the current method arguments contract available in 3.2, it just brings back the same functionality with the divider addition.
* Document the usage of grouped_options_for_select with divider optionRafael Mendonça França2012-05-161-1/+19
|
* Make :prompt work as documentedRafael Mendonça França2012-05-161-1/+8
|
* Test deprecation and fix the documentation of grouped_options_for_selectRafael Mendonça França2012-05-161-1/+4
|
* Add separator argument to grouped_options_for_selectGreenie05062012-05-151-2/+17
| | | | Change prompt to options hash in grouped_options_for_select
* Removing ==Examples and last blank lines of docs from actionpackFrancesco Rodriguez2012-05-151-1/+0
|
* Documentation fix in options_for_select helper. Fixed display errors caused ↵Rodrigo Pavano2012-05-011-9/+26
| | | | by mixing Ruby and HTML code inside the same pre tag [ci skip]
* add 'include_hidden' option to select tag, closes #5402Vasiliy Ermolovich2012-03-131-0/+2
|
* 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
|