aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Deprecate `:confirm` in favor of `:data => { :confirm => 'Text' }` ↵Rafael Mendonça França2012-08-013-29/+9
| | | | | | | | | | | option" Revert "Deprecate `:disable_with` in favor of `'data-disable-with'` option for `button_to` and `submit_tag` helpers." This reverts commit fc092a9cba5fceec38358072e50e09250cf58840. This reverts commit e9051e20aeb2c666db06b6217954737665878db7. This reverts commit d47d6e7eda3aa3e6aa28d0c17ac6801234bb97d1. This reverts commit 21141e777bdce8534e3755c8de7268324b3d8714.
* Fixed bug creating invalid HTML in select optionsRusty Geldmacher2012-07-101-5/+5
| | | | | | | | | When a select tag is created for a field with errors, and that select tag has :prompt or :include_blank options, then the inserted first option will errantly have a <div class="field_with_errors"> wrapping it. See https://github.com/rails/rails/issues/7017
* Fix NumberHelper options wrapping to prevent verbatim blocks being rendered ↵Mark J. Titorenko2012-07-021-90/+159
| | | | | | | | | | instead of line continuations. While I'm at it, wrap long comment lines consistently. Conflicts: actionpack/lib/action_view/helpers/number_helper.rb There was just one conflict related to the addition of the :format option to number_to_percentage.
* ActionController::Metal doesn't have logger method, check it and then delegateDmitry Vorotilin2012-06-161-2/+4
|
* Deprecate `:confirm` in favor of `:data => { :confirm => 'Text' }` optionCarlos Galdino2012-06-052-2/+13
| | | | | | | | | | | | This deprecation applies to: `button_to` `button_tag` `image_submit_tag` `link_to` `submit_tag` As :confirm is an UI specific option is better to use the data attributes, teaching users about unobtrusive JavaScript and how Rails works with it.
* Fixed tag_helper data-attribute bug with BigDecimalsBodacious2012-05-201-1/+1
|
* Use right option for excerpt text helper in tests, fix buildCarlos Antonio da Silva2012-05-191-2/+2
| | | | | | | `excerpt` text helper uses `:radius`, not `line_width` (that is used by `word_wrap` helper). Also cleanup some whitespaces.
* Merge pull request #5020 from KL-7/fix-blank-image_tag-sourceJosé Valim2012-05-181-2/+2
| | | | Render img tag with empty src if empty string is passed to image_tag.
* Deprecate old APIs for highlight, excerpt and word_wrapJeremy Walker2012-05-181-0/+9
|
* Deprecate `:disable_with` for `button_tag` tooCarlos Galdino + Rafael Mendonça França2012-05-142-2/+4
|
* Fix typoCarlos Galdino + Rafael Mendonça França2012-05-141-1/+1
|
* Deprecate `:disable_with` in favor of `'data-disable-with'` option for ↵Carlos Galdino + Rafael Mendonça França2012-05-142-6/+13
| | | | `button_to` and `submit_tag` helpers.
* Deprecate `:mouseover` options for `image_tag` helper.Rafael Mendonça França2012-05-131-0/+2
|
* Merge pull request #3237 from sakuro/data-url-schemeRafael Mendonça França2012-05-131-1/+1
| | | | Support data: url scheme
* Deprecate link_to_function and button_to_function helpersRafael Mendonça França2012-04-301-0/+4
|
* Add missing require when helpers are used in isolationRafael Mendonça França2012-04-301-0/+1
|
* Lazy load `default_form_builder` if it's passed as a stringPiotr Sarnacki2012-04-281-1/+7
| | | | closes #3341
* Do not mutate options hashCarlos Antonio da Silva2012-04-271-2/+2
|
* fix number_to_human docs [ci skip]Vijay Dev2012-04-261-2/+2
|
* Cover one more case in auth_token and remote formsPiotr Sarnacki2012-03-281-1/+1
| | | | | If embedding auth_token in remote forms is off and we pass a value for auth_token it should respect it.
* Added config.action_view.embed_authenticity_token_in_remote_formsPiotr Sarnacki2012-03-281-8/+16
| | | | | | | | There is a regression introduced in 16ee611fa, which breaks remote forms that should also work without javascript. This commit introduces config option that allows to configure this behavior defaulting to the old behavior (ie. include authenticity token in remote forms by default)
* Merge pull request #5622 from rafaelfranca/fix-2492-3-2Jeremy Kemper2012-03-271-2/+3
|\ | | | | [3-2-stable] Fix label_tag to merge the options hash with the object hash
| * Check if the options hash already exists and merge it with the anotherRafael Mendonça França2012-03-271-10/+5
| | | | | | | | | | | | hash. Closes #2492 and #5614
| * Fixing issue #2492. ActionView::Base.field_error_proc doesn't call for label.Andrey Samsonov2012-03-271-2/+8
| | | | | | | | | | | | objectify_options method should be applied to the proper options arg. See explanation and example of the bug - https://github.com/kryzhovnik/rails_field_error_proc_bug_example
* | Don't break Haml with textarea newline fix.James Coleman2012-03-272-2/+6
|/ | | | | | See issue #393, issue #4000, issue #5190, and issue #5191. Adds a newline after the textarea opening tag based on @codykrieger's original patch so that we don't cause regressions in Haml-using apps. The regression caused textarea tags to add newlines to the field unintentionally (each update/save added an extra newline.) Also fix 6 more tests that didn't yet have the newline expectation.
* apply form_for namespace option to date_selectSergey Nartimov2012-03-261-1/+4
|
* Allow you to force the authenticity_token to be rendered even on remote ↵David Heinemeier Hansson2012-03-141-5/+9
| | | | forms if you pass true
* Do not include the authenticity token in forms where remote: true as ajax ↵David Heinemeier Hansson2012-03-141-2/+9
| | | | forms use the meta-tag value
* Merge branch '3-2-2' into 3-2-stableAaron Patterson2012-03-012-4/+4
|\ | | | | | | | | | | | | | | | | | | | | | | | | * 3-2-2: bumping to 3.2.2 Ensure [] respects the status of the buffer. Merge pull request #4834 from sskirby/fix_usage_of_psql_in_db_test_prepare Merge pull request #5084 from johndouthat/patch-1 updating RAILS_VERSION delete vulnerable AS::SafeBuffer#[] use AS::SafeBuffer#clone_empty for flushing the output_buffer add AS::SafeBuffer#clone_empty fix output safety issue with select options
| * use AS::SafeBuffer#clone_empty for flushing the output_bufferAkira Matsuda2012-02-201-1/+1
| |
| * fix output safety issue with select optionsSergey Nartimov2012-02-201-3/+3
| |
* | Add a new line after the textarea opening tag.Rafael Mendonça França2012-02-271-1/+1
|/ | | | Closes #393
* don't set the hidden checkbox value if it's nilDamien Mathieu2012-01-271-1/+1
|
* check_box helper with :disabled => true generates disabled hidden field. ↵Tadas Tamošauskas2012-01-271-1/+1
| | | | fixes #1953
* remove extra 'the'Rohit Arondekar2012-01-261-1/+1
|
* Merge pull request #4639 from joevandyk/datetime-infinity-select-fixAaron Patterson2012-01-241-1/+1
|\ | | | | datetime_select fix for dates of -infinity and +infinity
| * datetime_select should work with -/+ infinity datesJoe Van Dyk2012-01-241-1/+1
| |
* | Fix date_select with discard_month and discard_year optionsRafael Mendonça França2012-01-241-2/+2
| | | | | | | | Closes #4553 and #4633
* | Fix date_select nil and blank and order caseIndrek Juhkam2012-01-241-1/+1
|/
* Merge pull request #4604 from ihid/3-2-stableJosé Valim2012-01-221-0/+1
|\ | | | | 3-2-stable: Fixed regression - unable to use a range as choices for form.select.
| * Allow form.select to accept ranges.Jeremy Walker2012-01-221-0/+1
| |
* | document `:raise` option support for several helpers [ci skip]Jonathan Roes2012-01-211-0/+3
|/
* Fix small typo in mail_to docs in url_helper.rbSimon Baird2012-01-191-1/+1
|
* Infer currency negative format from positive one.Tsutomu Kuroda2012-01-051-0/+1
| | | | | | | | When a locale file sets the format of the positive currency value as '%n %u', the default negative currency format should be '-%n %u'. Cherry-picked from master (6724c8c8)
* copy editsVijay Dev2012-01-041-10/+7
|
* improve doc in number helper optionsPablo Ifran2012-01-041-19/+57
|
* Add font_path helper methodSantiago Pastorino2012-01-031-0/+14
|
* Fixed documentation error in code examples from form_tag_helper.rbAlejandro Andrés2011-12-311-2/+2
|
* revise some doc changesVijay Dev2011-12-291-9/+4
|
* Fixed formatting of code examples in form_tag_helper.rbAlejandro Andrés2011-12-291-4/+4
|