aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/renderer
Commit message (Collapse)AuthorAgeFilesLines
* Use ActionView::Base.logger instead of AC::Base.loggerPiotr Sarnacki2012-08-281-1/+1
|
* load active_support/core_ext/object/blank in active_support/railsXavier Noria2012-08-021-1/+0
|
* Check validity of options[:as] just onceJosé Valim2012-08-021-12/+18
|
* Improve error handling when using partial name with hyphen. Fix #7079kennyj2012-08-031-7/+12
|
* Common behavior with adding formats to lookup_context for TemplateRenderer ↵Dmitry Vorotilin2012-07-183-2/+11
| | | | and PartialRenderer
* :update_details method no more exists on @lookup_contextAkira Matsuda2012-06-261-2/+1
| | | | the method has gone in this commit: 119e9e2dafb0cdc5b85613b730333679aef534af
* fix some accidental nilsAaron Patterson2012-06-221-2/+2
|
* fix typo in render_template [ci skip]Brent Vatne2012-05-291-1/+1
|
* Improve and cleanup a bit partial rendererCarlos Antonio da Silva2012-05-122-38/+37
| | | | | | | | | | * Remove template assignment: there is no need for this assignment, given we are rendering a collection with possibly different templates, and a second call to render (with the same instance) would behave differently if the template is set. * Remove segments array in favor of Array#map * Use local vars whenever possible * Cache local template keys, remove defaults from find_template
* Adjust error message for partial names starting with an uppercase letter.Marc-Andre Lafortune2012-05-041-2/+2
|
* Add changelog entry and some docs for collection + layoutCarlos Antonio da Silva2012-04-291-3/+7
|
* Move layout logic with collection to be handled only with explicit template ↵Carlos Antonio da Silva2012-04-291-15/+8
| | | | | | | is given Layout is never an available option when rendering with the shortcut `render @collection`.
* Allow access to current object_counter variable from layout when rendering ↵Carlos Antonio da Silva2012-04-291-1/+2
| | | | with partial + collection
* Allow layout to access current object being rendered when using render ↵Carlos Antonio da Silva2012-04-291-1/+1
| | | | partial + object
* Allow layout rendering to access current object being rendered when using ↵Carlos Antonio da Silva2012-04-291-6/+11
| | | | partial + collection
* converting some tests to assert_raises, and DRY'ing retrieve_variable changesTieg Zaharia2012-04-161-1/+1
|
* catch nil.to_sym errors in partial_renderer, and raise ArgumentError insteadTieg Zaharia2012-04-161-1/+1
|
* Make controller namespace partial prefix optionalGrant Hutchins2012-03-281-3/+10
| | | | | | | config.action_view.prefix_partial_path_with_controller_namespace This allows you to choose to render @post using /posts/_post.erb instead of /admin/posts/_post.erb inside Admin::PostsController.
* Set proper rendered_format when doing render :inlineSantiago Pastorino2012-03-281-2/+2
| | | | Closes #5632
* 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.
* Fixed-width font fix for instance variableJuanjo Bazán2012-03-201-1/+1
|
* Just change the formats on first render, closes #5307, closes #5308.José Valim2012-03-071-2/+7
|
* Adds line to change log and update documentation.Sergio Arbeo2012-03-071-0/+37
|
* Adds :layout option to render :partial when a collection is given.Sergio Arbeo2012-03-061-1/+9
|
* Fix #5238, rendered_format is not set when template is not renderedPiotr Sarnacki2012-03-021-0/+2
|
* format lookup for partials is derived from the format in which the template ↵Santiago Pastorino2012-02-222-2/+3
| | | | | | is being rendered Closes #5025 part 2
* to_proper_path -> to_partial_pathJosé Valim2012-01-311-1/+1
|
* Update actionpack/lib/action_view/renderer/partial_renderer.rbJosé Valim2012-01-311-2/+1
|
* Whitespaces :scissors:Rafael Mendonça França2012-01-051-2/+2
|
* Change more Array.wrap to Kernel#ArrayRafael Mendonça França2012-01-052-2/+1
|
* removes comment obsoleted by 18ed37bXavier Noria2011-12-311-3/+0
|
* fiber is available in ruby19Vishnu Atrai2011-12-311-1/+1
|
* raises an ArgumentError if no valid options are given to ↵Lucas Mazza2011-12-211-0/+2
| | | | TemplateRenderer#determine_template
* Remove deprecation warnings from Action Pack.José Valim2011-12-203-21/+1
|
* 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
|
* Fix another regression related to the layout optimization.José Valim2011-12-081-0/+2
|
* Fix a regression and also fix broken test.José Valim2011-12-081-4/+9
|
* Optimize layout lookup to avoid double calls.José Valim2011-12-081-7/+14
|
* 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-232-3/+1
|
* Allow both sym and array for details options in #render. using ↵Nick Sutterer2011-09-232-2/+13
| | | | LC#registered_details to extract options.
* Deprecate passing the template handler in the template name.José Valim2011-09-221-1/+1
| | | | | | 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-223-37/+29
|
* it is now possible to pass details options (:formats, :details, :locales, ↵Nick Sutterer2011-09-221-2/+3
| | | | ...) to #render, #find_template and friends. this doesn't change anything in global context.
* 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.