Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make a doc example output in match actual output | Evan Farrar | 2012-08-15 | 1 | -4/+4 |
| | | | | | Make doc output in grouped_options_for_select divider example match actual output. The options groups were in backwards order of actual. | ||||
* | Ensure option_html_attributes does not modify the given option hashes | Carlos Antonio da Silva | 2012-08-11 | 1 | -1/+1 |
| | | | | We can avoid creating extra hashes with #merge, and use #merge! instead. | ||||
* | Simplify html attributes generation for options_for_select | Carlos Antonio da Silva | 2012-08-11 | 1 | -3/+5 |
| | | | | | | | Further simplify the option_html_attributes method after the changes introduced in dacbcbe55745aa9e5484b10b11f65ccca7db1c54 to not escape the html options here (since they're going to be escaped down the chain in content tag). | ||||
* | load active_support/core_ext/object/blank in active_support/rails | Xavier Noria | 2012-08-02 | 1 | -1/+0 |
| | |||||
* | don't escape options in option_html_attributes method | Vasiliy Ermolovich | 2012-07-22 | 1 | -1/+1 |
| | | | | | | | | we don't need to escape values in this method as we pass these html attributes to `tag_options` method that handle escaping as well. it fixes the case when we want to pass html5 data options | ||||
* | Fixed bug creating invalid HTML in select options | Rusty Geldmacher | 2012-07-10 | 1 | -1/+1 |
| | | | | | | When a select tag is created for a field with errors, then the inserted options will errantly have a <div class="field_with_errors"> wrapping them. | ||||
* | Clarify grouped_options_for_select method API, add changelog entry | Carlos Antonio da Silva | 2012-05-19 | 1 | -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 option | Rafael Mendonça França | 2012-05-16 | 1 | -1/+19 |
| | |||||
* | Make :prompt work as documented | Rafael Mendonça França | 2012-05-16 | 1 | -1/+8 |
| | |||||
* | Test deprecation and fix the documentation of grouped_options_for_select | Rafael Mendonça França | 2012-05-16 | 1 | -1/+4 |
| | |||||
* | Add separator argument to grouped_options_for_select | Greenie0506 | 2012-05-15 | 1 | -2/+17 |
| | | | | Change prompt to options hash in grouped_options_for_select | ||||
* | Removing ==Examples and last blank lines of docs from actionpack | Francesco Rodriguez | 2012-05-15 | 1 | -1/+0 |
| | |||||
* | Documentation fix in options_for_select helper. Fixed display errors caused ↵ | Rodrigo Pavano | 2012-05-01 | 1 | -9/+26 |
| | | | | by mixing Ruby and HTML code inside the same pre tag [ci skip] | ||||
* | add 'include_hidden' option to select tag, closes #5402 | Vasiliy Ermolovich | 2012-03-13 | 1 | -0/+2 |
| | |||||
* | Add documentation to object method of CollectionHelpers::Builder | Rafael Mendonça França | 2012-02-26 | 1 | -6/+6 |
| | |||||
* | refactor option_text_and_value and option_value_selected? methods | Vasiliy Ermolovich | 2012-02-21 | 1 | -10/+3 |
| | |||||
* | refactor time_zone_options_for_select | Vasiliy Ermolovich | 2012-02-21 | 1 | -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_select | Vasiliy Ermolovich | 2012-02-20 | 1 | -7/+8 |
| | |||||
* | refactor grouped_options_for_select | Vasiliy Ermolovich | 2012-02-20 | 1 | -5/+5 |
| | |||||
* | Remove default class to collection_check_boxes and | Rafael Mendonça França | 2012-02-02 | 1 | -8/+8 |
| | | | | | | collection_radio_buttons [Carlos Antonio da Silva + Rafael Mendonça França] | ||||
* | Allow collection radio_buttons/check_boxes to access current text/value | Carlos Antonio da Silva | 2012-02-02 | 1 | -0/+14 |
| | | | | [Carlos Antonio da Silva + Rafael Mendonça França] | ||||
* | Add changelog, docs and guides entries | Carlos Antonio da Silva | 2012-02-02 | 1 | -17/+63 |
| | | | | [Carlos Antonio da Silva + Rafael Mendonça França] | ||||
* | Allow proc for value/text method in collection_select | Carlos Antonio da Silva | 2012-02-02 | 1 | -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 FormOptionsHelper | Carlos Antonio da Silva | 2012-02-02 | 1 | -0/+75 |
| | | | | [Carlos Antonio da Silva + Rafael Mendonça França] | ||||
* | Cleanup options helper methods a bit | Carlos Antonio da Silva | 2012-02-02 | 1 | -12/+12 |
| | | | | [Carlos Antonio da Silva + Rafael Mendonça França] | ||||
* | Refactor option groups to use content_tag | Carlos Antonio da Silva | 2012-02-02 | 1 | -4/+4 |
| | | | | [Carlos Antonio da Silva + Rafael Mendonça França] | ||||
* | Move collection_check_boxes and collection_radio_buttons to they our | Rafael Mendonça França | 2012-02-02 | 1 | -8/+0 |
| | | | | | | module [Carlos Antonio da Silva + Rafael Mendonça França] | ||||
* | Add collection_check_boxes helper | Carlos Antonio da Silva | 2012-02-02 | 1 | -0/+4 |
| | | | | [Carlos Antonio da Silva + Rafael Mendonça França] | ||||
* | Create collection_radio_buttons helper | Carlos Antonio da Silva | 2012-02-02 | 1 | -0/+4 |
| | | | | [Carlos Antonio da Silva + Rafael Mendonça França] | ||||
* | Remove eval calls, use send.. eval is evil | Carlos Antonio da Silva | 2012-01-31 | 1 | -3/+3 |
| | |||||
* | remove extra 'the' | Rohit Arondekar | 2012-01-25 | 1 | -1/+1 |
| | |||||
* | Do not need of ActionView::Helpers scope since we are inside | Rafael Mendonça França | 2012-01-17 | 1 | -4/+4 |
| | | | | ActionView::Helpers | ||||
* | Extract TimeZoneSelect | Rafael Mendonça França | 2012-01-17 | 1 | -34/+1 |
| | |||||
* | Extract GroupedCollectionSelect | Rafael Mendonça França | 2012-01-17 | 1 | -7/+1 |
| | |||||
* | Extract CollectionSelect | Rafael Mendonça França | 2012-01-17 | 1 | -9/+1 |
| | |||||
* | Extract Select | Rafael Mendonça França | 2012-01-17 | 1 | -18/+1 |
| | |||||
* | Whitespaces :scissors: | Rafael Mendonça França | 2012-01-05 | 1 | -5/+4 |
| | |||||
* | Refactor extract_selected_and_disabled | Rafael Mendonça França | 2012-01-05 | 1 | -1/+2 |
| | |||||
* | Change more Array.wrap to Kernel#Array | Rafael Mendonça França | 2012-01-05 | 1 | -2/+2 |
| | |||||
* | Check for response to `#last` instead of `#first`. | Brian Rose | 2011-12-20 | 1 | -1/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Ensure option for select helper responds to `#first` before comparison. | Brian Rose | 2011-12-20 | 1 | -1/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | scumbag 1.8: strings are enumerable :'( | Aaron Patterson | 2011-10-26 | 1 | -1/+1 |
| | |||||
* | properly handle lists of lists. Thanks @adrianpike for reporting! | Aaron Patterson | 2011-10-25 | 1 | -1/+6 |
| | |||||
* | just check to see that the first item in the list is an array | Aaron Patterson | 2011-10-07 | 1 | -1/+1 |
| | |||||
* | Improve performance and memory usage for options_for_select with Ruby 1.8.7 | Christos Zisopoulos | 2011-07-27 | 1 | -2/+2 |
| | |||||
* | Grouped select helper | Andrew Radev | 2011-07-11 | 1 | -2/+12 |
| | | | | FormBuilder#select now works with a nested data structure. | ||||
* | Select tag helpers: remove some code dups | Bogdan Gusiev | 2011-06-17 | 1 | -25/+10 |
| | |||||
* | Fixing select[multiple] html specification problem. | Bogdan Gusiev | 2011-06-08 | 1 | -6/+37 |
| | | | | Generating hidden input with same name before each multiple select | ||||
* | Added missing quote in grouped_options_for_select example | diego | 2011-05-26 | 1 | -1/+1 |
| | |||||
* | Remove extra white spaces on ActionPack docs. | Sebastian Martinez | 2011-05-23 | 1 | -4/+4 |
| |