aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
Commit message (Collapse)AuthorAgeFilesLines
* Remove remaining sprockets testsGuillermo Iguaran2012-03-131-28/+0
|
* Remove tests and fixtures for Sprockets on ActionPackGuillermo Iguaran2012-03-132-406/+0
|
* add include_hidden option to checkbox tagSergey Nartimov2012-03-131-0/+5
|
* add 'include_hidden' option to select tag, closes #5402Vasiliy Ermolovich2012-03-131-0/+8
|
* Merge pull request #5375 from nertzy/assert_template_with_regexpAaron Patterson2012-03-121-0/+6
|\ | | | | assert_template matches against Regexp
| * assert_template matches against RegexpGrant Hutchins2012-03-101-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows for more strict template assertions, while maintaining backward compatibility. For example, if you use assert_template("foo/bar") and "foo/bar/baz" was rendered, the test passes. But if you use assert_template(%r{\Afoo/bar\Z}), you will catch that a different template was rendered. Also, if you passed an unsupported argument to assert_template() in the past, it would silently succeed. Now it raises an ArgumentError.
* | Merge pull request #5380 from benmmurphy/escape_unicode_paragraph_separatorAaron Patterson2012-03-121-0/+2
|\ \ | | | | | | ensure u2029 is escaped in escape_javascript helper
| * | ensure u2029 is escaped in escape_javascript helperbenmmurphy2012-03-111-0/+2
| |/
* / Fixes #5324 by removing default size options from input:text and default ↵Philip Arndt2012-03-102-165/+165
|/ | | | cols and rows options from textarea.
* Merge pull request #5310 from Serabe/layout_for_partials_with_collectionsJosé Valim2012-03-061-0/+4
|\ | | | | Adds :layout option to render :partial when a collection is given.
| * Adds :layout option to render :partial when a collection is given.Sergio Arbeo2012-03-061-0/+4
| |
* | Compute asset paths from the request if ENV["RAILS_RELATIVE_URL_ROOT"] is ↵Dwayne Litzenberger2012-03-052-0/+103
|/ | | | | | | | | not set. This should fix the following issue: "Rails is not a Rack Application (SCRIPT_NAME vs. relative_url_root ?)" https://github.com/rails/rails/issues/910
* Merge pull request #5242 from rails/opt_routesJosé Valim2012-03-021-2/+2
|\ | | | | | | | | | | | | | | Optimize routes generation in simple cases. If you pass to the route helper the same amount of arguments as the required segments, route generation will be optimized as a string interpolation. After this commit, `post_path(post)` is about 6.5 times faster, `post_url(post)` is about 5 times.
| * Optimize url helpers.Sergey Nartimov + José Valim2012-03-021-2/+2
| |
* | Allow fieldsets to be created without a block.Ben Pickles2012-03-011-0/+10
|/
* Merge branch 'master-security'Aaron Patterson2012-03-011-1/+8
|\ | | | | | | | | | | | | | | | | | | | | | | * master-security: Ensure [] respects the status of the buffer. 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 Conflicts: actionpack/lib/action_view/helpers/tags/base.rb
| * fix output safety issue with select optionsSergey Nartimov2012-02-201-1/+8
| |
* | Add a new line after the textarea opening tag.Rafael Mendonça França2012-02-272-37/+37
| | | | | | | | Closes #393
* | Fix collection_check_boxes and collection_radio_buttons when using localRafael Mendonça França2012-02-261-0/+38
| | | | | | | | variables in the form builder
* | Move all the helpers to protected sectionRafael Mendonça França2012-02-261-31/+31
| |
* | uses PATCH for the forms of persisted records, and routes PATCH and PUT to ↵Xavier Noria2012-02-241-69/+66
| | | | | | | | the update action of resources
* | correct fetching :name option in form fieldsVasiliy Ermolovich2012-02-231-0/+5
| |
* | Merge pull request #5130 from dlee/revised_patch_verbXavier Noria2012-02-222-0/+15
|\ \ | | | | | | Add config.default_method_for_update to support PATCH
| * | Add config.default_method_for_update to support PATCHDavid Lee2012-02-222-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PATCH is the correct HTML verb to map to the #update action. The semantics for PATCH allows for partial updates, whereas PUT requires a complete replacement. Changes: * adds config.default_method_for_update you can set to :patch * optionally use PATCH instead of PUT in resource routes and forms * adds the #patch verb to routes to detect PATCH requests * adds #patch? to Request * changes documentation and comments to indicate support for PATCH This change maintains complete backwards compatibility by keeping :put as the default for config.default_method_for_update.
* | | format lookup for partials is derived from the format in which the template ↵Santiago Pastorino2012-02-222-4/+8
|/ / | | | | | | | | | | is being rendered Closes #5025 part 2
* | Don't wrap the raise with ensureSantiago Pastorino2012-02-211-1/+1
| |
* | Restore lookup formats to the previous value after searching for the failing ↵Santiago Pastorino2012-02-211-1/+2
|/ | | | view
* Merge pull request #5102 from nashby/form-option-refactorJosé Valim2012-02-201-16/+16
|\ | | | | form option refactor
| * refactor options_for_selectVasiliy Ermolovich2012-02-201-16/+16
| |
* | Fix a failing testSantiago Pastorino2012-02-201-0/+2
| |
* | Use the right format when a partial is missing.Santiago Pastorino2012-02-201-0/+7
| | | | | | | | Closes #5025
* | Merge pull request #5101 from ckdake/ckdake_actionview_handler_resetJosé Valim2012-02-201-0/+6
|/ | | | | | | Reset memoized hash keys when new ActionView::Template handler is registered Conflicts: actionpack/lib/action_view/template/handlers.rb
* add selected and disabled option to grouped selectVasiliy Ermolovich2012-02-181-0/+18
|
* Allow collection helpers with block to access current object in the collectionCarlos Antonio da Silva2012-02-131-0/+26
| | | | | | | | | | This gives a lot more flexibility to the user, for instance to generate a collection of check boxes and labels, allowing to add custom classes or data-* attributes to the label/check_box using another object attribute. This basically mimics options_for_select functionality that accepts a third option for each item to generate html attributes for each option.
* remove unwanted require for string encodingVishnu Atrai2012-02-131-1/+0
|
* Add HTML5 input[type="date"] helperOlek Janiszewski2012-02-122-1/+32
|
* removed unnecessary codeganesh2012-02-091-1/+0
|
* Always use content_tag for audio/video tagRafael Mendonça França2012-02-071-15/+15
| | | | Closes #4919
* Highlight defaults to HTML5 `mark` elementBrian Cardarella2012-02-051-12/+12
|
* Add *_url helpers to get the full assets URLPrem Sichanugrist2012-02-041-2/+129
| | | | | | | Adds `image_url`, `javascript_url`, `stylesheet_url`, `audio_url`, `video_url`, and `font_url` to assets tag helper. These URL helpers will return the full path to your assets. This is useful when you are going to reference this asset from external host.
* Remove default class to collection_check_boxes andRafael Mendonça França2012-02-021-16/+16
| | | | | | 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/+44
| | | | [Carlos Antonio da Silva + Rafael Mendonça França]
* Add changelog, docs and guides entriesCarlos Antonio da Silva2012-02-021-2/+20
| | | | [Carlos Antonio da Silva + Rafael Mendonça França]
* Allow proc for value/text method in collection_selectCarlos Antonio da Silva2012-02-021-10/+42
| | | | | | And options_from_collection_for_select as well. [Carlos Antonio da Silva + Rafael Mendonça França]
* Create a Builder factory class to use with collection helpers + blockCarlos Antonio da Silva2012-02-021-4/+4
| | | | | | | | This will make it easy for the user to handle how check box/radio and labels should be generated, abstracting any text/value/default html options required to make it work. [Carlos Antonio da Silva + Rafael Mendonça França]
* Remove collection_wrapper* and item_wrapper* optionsCarlos Antonio da Silva2012-02-021-173/+0
| | | | [Carlos Antonio da Silva + Rafael Mendonça França]
* Use @output_buffer variable instead of concat in testsCarlos Antonio da Silva2012-02-021-10/+9
| | | | [Carlos Antonio da Silva + Rafael Mendonça França]
* Implement skipped testRafael Mendonça França2012-02-021-3/+5
| | | | [Carlos Antonio da Silva + Rafael Mendonça França]
* Add collection_radio_buttons and collection_check_boxes to FormBuilderRafael Mendonça França2012-02-021-9/+20
| | | | [Carlos Antonio da Silva + Rafael Mendonça França]
* Change Tag class to Category since there is another Tag classRafael Mendonça França2012-02-021-33/+33
| | | | [Carlos Antonio da Silva + Rafael Mendonça França]