aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/renderer/partial_renderer.rb
Commit message (Collapse)AuthorAgeFilesLines
* fix issue #11605Kassio Borges2013-08-241-2/+0
|
* Common behavior with adding formats to lookup_context for TemplateRenderer ↵Dmitry Vorotilin2013-04-021-0/+2
| | | | and PartialRenderer
* Merge pull request #8402 from ↵Rafael Mendonça França2012-12-021-1/+1
| | | | | | | | | senny/8376_descriptive_error_message_for_partial_layout_true More descriptive error when rendering a partial with `:layout => true` Conflicts: actionpack/CHANGELOG.md actionpack/lib/action_view/renderer/partial_renderer.rb
* converting some tests to assert_raises, and DRY'ing retrieve_variable changesTieg Zaharia2012-04-161-1/+1
| | | | | | Conflicts: actionpack/test/template/render_test.rb
* catch nil.to_sym errors in partial_renderer, and raise ArgumentError insteadTieg Zaharia2012-04-161-1/+1
|
* If partial is rendered in controller, grab format from templatePiotr Sarnacki2012-03-271-2/+8
| | | | | | | | | Previously `rendered_format` was set only based on mime types passed in Accept header, which was wrong if first type from Accept was different than rendered partial. The fix is to simply move setting rendered_format to the place where template is available and grab format from the template. If it fails we can fallback to formats passed by Accept header.
* Fix #5238, rendered_format is not set when template is not renderedPiotr Sarnacki2012-03-021-0/+2
|
* Update partials documentation, partial_path is no longer generated using ↵Piotr Sarnacki2011-12-101-10/+13
| | | | RecordIdentifier
* Simplify path traversal logicJosé Valim2011-12-091-7/+7
|
* Remove #:nodoc: from partial renderer.José Valim2011-12-071-1/+1
|
* Meaningful errors for unexpected partial arguments. Fixes #3573Tobias Svensson2011-11-191-2/+7
|
* closes #3241 - partial doc fixVijay Dev2011-10-071-1/+1
|
* Using #extract_details in PartialRenderer, too!Nick Sutterer2011-09-231-1/+1
|
* Get rid of update_details in favor of passing details to find_template.José Valim2011-09-221-12/+11
|
* Rename new method to_path to to_partial_path to avoid conflicts with ↵José Valim2011-08-011-3/+3
| | | | File#to_path and similar.
* Move the cache to a nested hash which performs better than a hash with array ↵José Valim2011-07-281-11/+17
| | | | as keys.
* Let ActiveModel instances define partial paths.Grant Hutchins & Peter Jaros2011-07-251-21/+22
| | | | | | Deprecate ActiveModel::Name#partial_path. Now you should call #to_path directly on ActiveModel instances.
* - added ActionView::PartialRenderer#merge_path_into_partial(path, partial)Gaston Ramos2011-07-241-2/+16
| | | | fix issues/1951
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-07-231-20/+11
|\
| * Documentation fixes for rendering partialsOlek Janiszewski2011-07-091-20/+11
| |
* | Checking with to_s. As regexp fail with 1.8.7Arun Agrawal2011-07-181-2/+1
| |
* | Added view template invalid name check, along with tests. No merges in commit.huskins2011-07-131-0/+6
|/
* no @controller dependency in Renderers.Nick Sutterer2011-05-041-7/+3
|
* Remove view dependency from AV::Renderer.José Valim2011-05-011-34/+35
|
* Remove more dependencies from the view.José Valim2011-05-011-4/+10
|
* Start abstracting the renderer.José Valim2011-05-011-1/+216
|
* Yo dawg, I heard you like streaming. So I put a fiber, inside a block, ↵José Valim2011-04-161-2/+0
| | | | inside a body, so you can stream.
* Initial work on fibered layout.José Valim2011-04-161-1/+1
|
* Accept String value for render_partial :as optionAkira Matsuda2011-02-011-2/+2
| | | | | | [#6222 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Final tidy up on templates inheritance.José Valim2010-12-271-1/+1
|
* all tests passartemave2010-12-261-1/+1
|
* #948 template_inheritanceartemave2010-12-261-2/+2
|
* Make collection and collection_from_object methods return an arraySantiago Pastorino2010-11-131-3/+4
| | | | | | This transforms for instance scoped objects into arrays and avoid unneeded queries [#5958 state:committed]
* render :once should consider the current controller prefix.José Valim2010-10-141-2/+2
|
* Add support to render :once.José Valim2010-10-101-4/+3
| | | | This will be used internally by sprockets to ensure requires are executed just once.
* Clean up the house before moving in the new furniture.José Valim2010-10-101-0/+167
This commit moves all the template rendering logic that was hanging around AV::Base to renderer objects.