aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
Commit message (Collapse)AuthorAgeFilesLines
* Adds :layout option to render :partial when a collection is given.Sergio Arbeo2012-03-061-0/+4
|
* 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]
* Add collection_check_boxes helperCarlos Antonio da Silva2012-02-021-1/+227
| | | | [Carlos Antonio da Silva + Rafael Mendonça França]
* Create collection_radio_buttons helperCarlos Antonio da Silva2012-02-021-0/+174
| | | | [Carlos Antonio da Silva + Rafael Mendonça França]
* Replicate :form html5 attribute to hidden field for check_boxCarlos Antonio da Silva2012-02-021-3/+10
| | | | | When the new html5 attribute :form is given to the check_box helper, it should be replicated to the hidden field as well. Closes #4848
* Merge pull request #4804 from rafaelfranca/check_box-fixJosé Valim2012-02-011-0/+4
|\ | | | | check_box with nil as unchecked value should be HTML safe
| * check_box with nil as unchecked value should be HTML safeRafael Mendonça França2012-01-311-0/+4
| | | | | | | | [Carlos Antonio da Silva + Rafael Mendonça França]
* | Move escape_once logic to ERB::Util, where it belongs toCarlos Antonio da Silva2012-02-011-0/+14
| | | | | | | | | | | | All the logic is based on the HTML_ESCAPE constant available in ERB::Util, so it seems more logic to have the entire method there and just delegate the helper to use it.
* | Merge pull request #4672 from carlosantoniodasilva/av-url-helperJosé Valim2012-02-011-8/+8
|\ \ | | | | | | Improvements on some url helper methods and tests
| * | Change OrderedHash with array options to simple hash usageCarlos Antonio da Silva2012-01-251-8/+8
| | |
* | | Remove slash from favicon_link_tag method attributeLucas Caton2012-01-311-1/+1
| |/ |/|
* | tiny refactoringVasiliy Ermolovich2012-01-291-3/+3
| | | | | | | | | | use :default option with translate method instead of condition simplify separator method
* | Do not generate label for attribute when giving nilCarlos Antonio da Silva2012-01-261-0/+4
| |