aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template/render_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #7669 from guilleiguaran/rename-rb-handlerCarlos Antonio da Silva2012-09-171-3/+3
|\ | | | | Rename .rb template handler to .ruby to avoid conflicts with mustache classes
| * Rename .rb template handler to .ruby to avoid conflicts with mustache views ↵Guillermo Iguaran2012-09-171-3/+3
| | | | | | | | classes
* | allowing pass couple extension to register_template_handler callTima Maslyuchenko2012-09-171-0/+9
|/
* Add .rb template handlerGuillermo Iguaran2012-09-111-0/+8
| | | | This handler simply allows arbitrary Ruby code as a template
* Indentation should consider line number character count.Lucas Uyezu2012-08-131-0/+9
|
* Improve error handling when using partial name with hyphen. Fix #7079kennyj2012-08-031-0/+7
|
* Common behavior with adding formats to lookup_context for TemplateRenderer ↵Dmitry Vorotilin2012-07-181-0/+10
| | | | and PartialRenderer
* Created a Raw handler for templates.Steve Klabnik2012-05-171-0/+8
| | | | Fixes #2394
* update invalid partial error message as per ↵Vijay Dev2012-05-041-4/+4
| | | | 04202a3f8d66c0675eac41fbf63309f4be356e81
* Allow access to current object_counter variable from layout when rendering ↵Carlos Antonio da Silva2012-04-291-4/+11
| | | | with partial + collection
* Allow layout to access current object being rendered when using render ↵Carlos Antonio da Silva2012-04-291-0/+4
| | | | partial + object
* Allow layout rendering to access current object being rendered when using ↵Carlos Antonio da Silva2012-04-291-2/+6
| | | | partial + collection
* converting some tests to assert_raises, and DRY'ing retrieve_variable changesTieg Zaharia2012-04-161-39/+17
|
* catch nil.to_sym errors in partial_renderer, and raise ArgumentError insteadTieg Zaharia2012-04-161-0/+9
|
* Adds :layout option to render :partial when a collection is given.Sergio Arbeo2012-03-061-0/+4
|
* format lookup for partials is derived from the format in which the template ↵Santiago Pastorino2012-02-221-2/+6
| | | | | | is being rendered Closes #5025 part 2
* Restore lookup formats to the previous value after searching for the failing ↵Santiago Pastorino2012-02-211-1/+2
| | | | view
* 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
* remove checks for encodings availabilitySergey Nartimov2011-12-251-36/+34
|
* raises an ArgumentError if no valid options are given to ↵Lucas Mazza2011-12-211-4/+11
| | | | TemplateRenderer#determine_template
* Remove deprecation warnings from Action Pack.José Valim2011-12-201-31/+1
|
* Meaningful errors for unexpected partial arguments. Fixes #3573Tobias Svensson2011-11-191-0/+7
|
* Fix deprecation warnings in action pack test suite due to passing template ↵Matthew Daubert2011-10-251-4/+4
| | | | formats in the template name.
* Fix failing tests and add tests for :formats on partial.José Valim2011-09-231-5/+10
|
* Allow both sym and array for details options in #render. using ↵Nick Sutterer2011-09-231-0/+3
| | | | LC#registered_details to extract options.
* added tests for render :file/:template and the :formats/:handlers/:locale ↵Nick Sutterer2011-09-231-1/+17
| | | | options.
* Deprecate passing the template handler in the template name.José Valim2011-09-221-20/+22
| | | | | | For example, calling hello.erb is now deprecated. Since Rails 3.0 passing the handler had no effect whatsover. This commit simply deprecates such cases so we can clean up the code in later releases.
* Get rid of update_details in favor of passing details to find_template.José Valim2011-09-221-0/+5
|
* it is now possible to pass details options (:formats, :details, :locales, ↵Nick Sutterer2011-09-221-0/+6
| | | | ...) to #render, #find_template and friends. this doesn't change anything in global context.
* deprecating process_view_pathsAaron Patterson2011-08-091-1/+1
|
* Rename new method to_path to to_partial_path to avoid conflicts with ↵José Valim2011-08-011-2/+2
| | | | File#to_path and similar.
* Let ActiveModel instances define partial paths.Grant Hutchins & Peter Jaros2011-07-251-0/+30
| | | | | | Deprecate ActiveModel::Name#partial_path. Now you should call #to_path directly on ActiveModel instances.
* Added view template invalid name check, along with tests. No merges in commit.huskins2011-07-131-0/+9
|
* remove warning: assigned but unused variableSantiago Pastorino2011-06-081-2/+2
|
* Optimize the most common resolver case.José Valim2011-05-091-1/+1
|
* Buffer should be an option passed down to template rendering.José Valim2011-04-161-9/+0
|
* removes render :update from viewsXavier Noria2011-04-131-4/+0
|
* SJIS is an alias to Windows-31J in ruby trunk. Use SHIFT_JIS for this testAaron Patterson2011-03-211-2/+2
|
* Add a test for 'render :layout'Anton Astashov2011-02-031-0/+5
| | | | | | | | | To make sure it will show block contents if it is placed after 'render :partial' [#5557 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Accept String value for render_partial :as optionAkira Matsuda2011-02-011-1/+6
| | | | | | [#6222 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Properly check the arity for template handlers.José Valim2010-12-091-0/+5
|
* Pass the view object as parameter to the handler. Useful if you need to ↵José Valim2010-11-171-0/+9
| | | | access the lookup context or other information when compiling the template.
* Tests added for rendering partial with layout, when the partial contains ↵Santiago Pastorino2010-11-131-0/+15
| | | | another render layout with block call
* Fix render partial with layout and no blockCarlos Antonio da Silva2010-11-111-0/+10
| | | | | | | | When using a render :partial with :layout call, without giving a block, if the given :partial had another render :partial call, the layout was not being rendered. This commit fixes this context by storing variables before rendering the partial, so they are not overrided in any successive call to render partials down the path. All ActionPack tests are ok.
* Fix issue with rendering partials and then yielding inside a render layout callCarlos Antonio da Silva2010-11-111-0/+20
| | | | | | | The given block was never being executed when another render :partial call existed before the yield call, due to the block being overriden. This commit also adds some more tests to render with :layout option.
* Do not allow templates coming from Fallback resolvers to store a virtual path.José Valim2010-10-101-1/+12
|
* fix rendering a partial with an array as its :object [#5746 state:resolved]Michael Koziarski2010-10-081-0/+4
| | | | | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> Conflicts: actionpack/lib/action_view/render/partials.rb
* Silence warnings here, only setting Encoding.default_external for testing.Emilio Tagua2010-09-281-2/+3
|
* Removing unnecessary code from render_testThiago Pradi2010-09-021-2/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>