Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add changelog entry and some docs for collection + layout | Carlos Antonio da Silva | 2012-04-29 | 1 | -3/+7 |
| | |||||
* | Move layout logic with collection to be handled only with explicit template ↵ | Carlos Antonio da Silva | 2012-04-29 | 1 | -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 Silva | 2012-04-29 | 1 | -1/+2 |
| | | | | with partial + collection | ||||
* | Allow layout to access current object being rendered when using render ↵ | Carlos Antonio da Silva | 2012-04-29 | 1 | -1/+1 |
| | | | | partial + object | ||||
* | Allow layout rendering to access current object being rendered when using ↵ | Carlos Antonio da Silva | 2012-04-29 | 1 | -6/+11 |
| | | | | partial + collection | ||||
* | converting some tests to assert_raises, and DRY'ing retrieve_variable changes | Tieg Zaharia | 2012-04-16 | 1 | -1/+1 |
| | |||||
* | catch nil.to_sym errors in partial_renderer, and raise ArgumentError instead | Tieg Zaharia | 2012-04-16 | 1 | -1/+1 |
| | |||||
* | Make controller namespace partial prefix optional | Grant Hutchins | 2012-03-28 | 1 | -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. | ||||
* | If partial is rendered in controller, grab format from template | Piotr Sarnacki | 2012-03-27 | 1 | -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 variable | Juanjo Bazán | 2012-03-20 | 1 | -1/+1 |
| | |||||
* | Adds line to change log and update documentation. | Sergio Arbeo | 2012-03-07 | 1 | -0/+37 |
| | |||||
* | Adds :layout option to render :partial when a collection is given. | Sergio Arbeo | 2012-03-06 | 1 | -1/+9 |
| | |||||
* | Fix #5238, rendered_format is not set when template is not rendered | Piotr Sarnacki | 2012-03-02 | 1 | -0/+2 |
| | |||||
* | to_proper_path -> to_partial_path | José Valim | 2012-01-31 | 1 | -1/+1 |
| | |||||
* | Update actionpack/lib/action_view/renderer/partial_renderer.rb | José Valim | 2012-01-31 | 1 | -2/+1 |
| | |||||
* | Remove deprecation warnings from Action Pack. | José Valim | 2011-12-20 | 1 | -8/+1 |
| | |||||
* | Update partials documentation, partial_path is no longer generated using ↵ | Piotr Sarnacki | 2011-12-10 | 1 | -10/+13 |
| | | | | RecordIdentifier | ||||
* | Simplify path traversal logic | José Valim | 2011-12-09 | 1 | -7/+7 |
| | |||||
* | Remove #:nodoc: from partial renderer. | José Valim | 2011-12-07 | 1 | -1/+1 |
| | |||||
* | Meaningful errors for unexpected partial arguments. Fixes #3573 | Tobias Svensson | 2011-11-19 | 1 | -2/+7 |
| | |||||
* | closes #3241 - partial doc fix | Vijay Dev | 2011-10-07 | 1 | -1/+1 |
| | |||||
* | Using #extract_details in PartialRenderer, too! | Nick Sutterer | 2011-09-23 | 1 | -1/+1 |
| | |||||
* | Get rid of update_details in favor of passing details to find_template. | José Valim | 2011-09-22 | 1 | -12/+11 |
| | |||||
* | Rename new method to_path to to_partial_path to avoid conflicts with ↵ | José Valim | 2011-08-01 | 1 | -3/+3 |
| | | | | File#to_path and similar. | ||||
* | Move the cache to a nested hash which performs better than a hash with array ↵ | José Valim | 2011-07-28 | 1 | -11/+17 |
| | | | | as keys. | ||||
* | Let ActiveModel instances define partial paths. | Grant Hutchins & Peter Jaros | 2011-07-25 | 1 | -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 Ramos | 2011-07-24 | 1 | -2/+16 |
| | | | | fix issues/1951 | ||||
* | Merge branch 'master' of git://github.com/lifo/docrails | Xavier Noria | 2011-07-23 | 1 | -20/+11 |
|\ | |||||
| * | Documentation fixes for rendering partials | Olek Janiszewski | 2011-07-09 | 1 | -20/+11 |
| | | |||||
* | | Checking with to_s. As regexp fail with 1.8.7 | Arun Agrawal | 2011-07-18 | 1 | -2/+1 |
| | | |||||
* | | Added view template invalid name check, along with tests. No merges in commit. | huskins | 2011-07-13 | 1 | -0/+6 |
|/ | |||||
* | no @controller dependency in Renderers. | Nick Sutterer | 2011-05-04 | 1 | -7/+3 |
| | |||||
* | Remove view dependency from AV::Renderer. | José Valim | 2011-05-01 | 1 | -34/+35 |
| | |||||
* | Remove more dependencies from the view. | José Valim | 2011-05-01 | 1 | -4/+10 |
| | |||||
* | Start abstracting the renderer. | José Valim | 2011-05-01 | 1 | -1/+216 |
| | |||||
* | Yo dawg, I heard you like streaming. So I put a fiber, inside a block, ↵ | José Valim | 2011-04-16 | 1 | -2/+0 |
| | | | | inside a body, so you can stream. | ||||
* | Initial work on fibered layout. | José Valim | 2011-04-16 | 1 | -1/+1 |
| | |||||
* | Accept String value for render_partial :as option | Akira Matsuda | 2011-02-01 | 1 | -2/+2 |
| | | | | | | [#6222 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Final tidy up on templates inheritance. | José Valim | 2010-12-27 | 1 | -1/+1 |
| | |||||
* | all tests pass | artemave | 2010-12-26 | 1 | -1/+1 |
| | |||||
* | #948 template_inheritance | artemave | 2010-12-26 | 1 | -2/+2 |
| | |||||
* | Make collection and collection_from_object methods return an array | Santiago Pastorino | 2010-11-13 | 1 | -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é Valim | 2010-10-14 | 1 | -2/+2 |
| | |||||
* | Add support to render :once. | José Valim | 2010-10-10 | 1 | -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é Valim | 2010-10-10 | 1 | -0/+167 |
This commit moves all the template rendering logic that was hanging around AV::Base to renderer objects. |