Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | added failing test for fields_for with a record object that inherits from Hash | Diego Carrion | 2011-03-06 | 1 | -0/+19 |
| | | | | Signed-off-by: Andrew White <andyw@pixeltrix.co.uk> | ||||
* | Improve select helpers by allowing a selected value of false. This is ↵ | John Allison | 2011-01-09 | 1 | -8/+24 |
| | | | | useful when using a select helper with a boolean attribute, and the attribute is false. (e.g. f.select :allow_comments) | ||||
* | select tags coerce the :selected option, options to strings before ↵ | Subba Rao Pasupuleti | 2010-08-15 | 1 | -0/+62 |
| | | | | | | comparison [#5056 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Making time_zone_options_for_select return a html_safe string | Mikel Lindsaar | 2010-08-15 | 1 | -0/+4 |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 1 | -6/+6 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | select :include_blank or :prompt should return escaped string [#5099 ↵ | Ivan Torres | 2010-07-18 | 1 | -0/+23 |
| | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | option_groups_from_collection_for_select should return HTML-safe string ↵ | Wincent Colaiuta | 2010-06-19 | 1 | -18/+12 |
| | | | | | | [#4879 state:resolved] Signed-off-by: Xavier Noria <fxn@hashref.com> | ||||
* | added support for html attributes in options_for_select [#2165] | pleax | 2010-05-16 | 1 | -0/+56 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Mark the result of grouped_options_for_select as HTML safe [#4322 ↵ | Kieran Pilkington | 2010-04-16 | 1 | -0/+4 |
| | | | | | | state:committed] Signed-off-by: Xavier Noria <fxn@hashref.com> | ||||
* | Make form helpers work with <%= | wycats | 2010-03-09 | 1 | -11/+11 |
| | |||||
* | Restore split between require-time and runtime load path mungery. Simplifies ↵ | Jeremy Kemper | 2009-09-24 | 1 | -1/+1 |
| | | | | vendor requires. | ||||
* | Rollback AS bundler work and improve activation of vendored dependencies | Joshua Peek | 2009-09-13 | 1 | -1/+1 |
| | |||||
* | Introduce grouped_collection_select helper. | codeape | 2009-08-09 | 1 | -0/+34 |
| | | | | | | [#1249 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Allow strings to be sent as collection to select. | José Valim | 2009-05-15 | 1 | -0/+22 |
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | Enhanced form option helpers to add support for disabled option tags and use ↵ | Tekin Suleyman | 2009-02-14 | 1 | -0/+84 |
| | | | | | | of anonymous functions for specifying selected and disabled values from collections. Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | DRY up form option helper tests | Tekin Suleyman | 2009-02-14 | 1 | -78/+19 |
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | Bump mocha requirement for Ruby 1.9 compat. Remove uses_mocha. | Jeremy Kemper | 2009-02-03 | 1 | -600/+598 |
| | |||||
* | Added grouped_options_for_select helper method for wrapping option tags in ↵ | Jon Crawford | 2009-01-29 | 1 | -0/+26 |
| | | | | | | 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ño | 2009-01-28 | 1 | -0/+16 |
| | | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Fix dangling tzinfo dependency | Jeremy Kemper | 2008-11-23 | 1 | -1/+2 |
| | |||||
* | moving country helpers from form_options_helper to form_country_helper again | Sven Fuchs | 2008-07-16 | 1 | -1539/+0 |
| | |||||
* | Ensure :index works with fields_for select methods. [#518 state:resolved] | rsl | 2008-07-14 | 1 | -0/+885 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | use mocha for TimeZone mocking in Form Options helper tests | rick | 2008-07-02 | 1 | -504/+495 |
| | |||||
* | Added support for regexp matching of priority zones in time_zone_select ↵ | Ernie Miller | 2008-06-29 | 1 | -0/+18 |
| | | | | [#195 state:resolved] | ||||
* | Silence TimeZone warning | Pratik Naik | 2008-06-11 | 1 | -2/+2 |
| | |||||
* | Fix FormOptionsHelper tests. | Jan De Poorter | 2008-06-11 | 1 | -5/+5 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Use output_buffer reader and writer methods exclusively instead of hitting ↵ | Jeremy Kemper | 2008-06-08 | 1 | -15/+9 |
| | | | | the instance variable so others can override the methods. | ||||
* | Work with @output_buffer instead of _erbout | Jeremy Kemper | 2008-06-02 | 1 | -9/+9 |
| | |||||
* | Introduce ActionView::TestCase for testing view helpers. | Joshua Peek | 2008-04-19 | 1 | -3/+2 |
| | |||||
* | Docfixes (closes #11356, #11172, #10523) | David Heinemeier Hansson | 2008-03-20 | 1 | -0/+13 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9064 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Ruby 1.9 compat: account for hash ordering | Jeremy Kemper | 2008-01-07 | 1 | -4/+3 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8588 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | require abstract_unit directly since test is in load path | Jeremy Kemper | 2008-01-05 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8564 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Add :default option to time_zone_select. Closes #10590. | Jeremy Kemper | 2007-12-21 | 1 | -0/+28 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8473 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Ruby 1.9 compat: note failing form options helper test, probably in html-scanner | Jeremy Kemper | 2007-12-21 | 1 | -0/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8465 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Remove Great Britain from the Country select helper to ensure consistency ↵ | Michael Koziarski | 2007-12-05 | 1 | -3/+0 |
| | | | | | | 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 | ||||
* | Add 'disabled' attribute to <OPTION> separators used in time zone and ↵ | Rick Olson | 2007-12-04 | 1 | -6/+6 |
| | | | | | | country selects. Closes #10354 [hasmanyjosh] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8267 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Sync country_select with ISO 3166 long names. Closes #6872 [abhay, mikong, ↵ | Michael Koziarski | 2007-10-15 | 1 | -21/+751 |
| | | | | | | ruben] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7904 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Test fix (closes #6911) | David Heinemeier Hansson | 2007-09-22 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7587 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Improve helper test coverage. Closes #7215, #7233, #7234, #7235, #7236, ↵ | Jeremy Kemper | 2007-06-13 | 1 | -2/+26 |
| | | | | | | #7237, #7238. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7011 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | select :include_blank option can be set to a string instead of true, which ↵ | Jeremy Kemper | 2007-05-18 | 1 | -0/+56 |
| | | | | | | just uses an empty string. Closes #7664. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6763 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | select :multiple => true suffixes the attribute name with [] unless already ↵ | Jeremy Kemper | 2007-01-28 | 1 | -0/+19 |
| | | | | | | suffixed. Closes #6977. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6078 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Use a consistent load path to avoid double requires. Fix some scattered Ruby ↵ | Jeremy Kemper | 2007-01-28 | 1 | -1/+1 |
| | | | | | | warnings. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6057 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Excise ingrown code from FormOptionsHelper#options_for_select. Closes #5008. | Jeremy Kemper | 2006-05-09 | 1 | -0/+4 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4331 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Change form_for and fields_for method signatures to take object name and ↵ | Marcel Molina | 2005-12-02 | 1 | -3/+3 |
| | | | | | | object as separate arguments rather than as a Hash. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3201 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Introduce :selected option to the select helper. Allows you to specify a ↵ | Jeremy Kemper | 2005-11-23 | 1 | -0/+18 |
| | | | | | | selection other than the current value of object.method. Specify :selected => nil to leave all options unselected. Closes #2991. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3174 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Added FormHelper#form_for and FormHelper#fields_for that makes it easier to ↵ | David Heinemeier Hansson | 2005-11-13 | 1 | -0/+60 |
| | | | | | | work with forms for single objects also if they don't reside in instance variables [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3003 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | options_for_select allows any objects which respond_to? :first and :last ↵ | Jeremy Kemper | 2005-11-10 | 1 | -6/+16 |
| | | | | | | rather than restricting to Array and Range. Closes #2824. References [2126]. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2977 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Optimized tag_options to not sort keys, which is no longer necessary when ↵ | David Heinemeier Hansson | 2005-09-20 | 1 | -34/+34 |
| | | | | | | assert_dom_equal and friend is available #1995 [skae]. Added assert_dom_equal and assert_dom_not_equal to compare tags generated by the helpers in an order-indifferent manner #1995 [skae] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2271 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Added Kernel#silence_warnings and puts it into use throughout the framework | David Heinemeier Hansson | 2005-09-11 | 1 | -6/+6 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2179 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Added :prompt option to FormOptions#select (and the users of it, like ↵ | David Heinemeier Hansson | 2005-07-03 | 1 | -0/+36 |
| | | | | | | FormOptions#select_country etc) to create "Please select" style descriptors #1181 [Michael Schuerig] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1646 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |