Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | converting some tests to assert_raises, and DRY'ing retrieve_variable changes | Tieg Zaharia | 2012-04-16 | 1 | -1/+1 |
| | | | | | | Conflicts: actionpack/test/template/render_test.rb | ||||
* | catch nil.to_sym errors in partial_renderer, and raise ArgumentError instead | Tieg Zaharia | 2012-04-16 | 1 | -1/+1 |
| | |||||
* | Set proper rendered_format when doing render :inline | Santiago Pastorino | 2012-03-28 | 1 | -2/+2 |
| | | | | Closes #5632 | ||||
* | 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. | ||||
* | Just change the formats on first render, closes #5307, closes #5308. | José Valim | 2012-03-07 | 1 | -2/+7 |
| | |||||
* | Fix #5238, rendered_format is not set when template is not rendered | Piotr Sarnacki | 2012-03-02 | 1 | -0/+2 |
| | |||||
* | format lookup for partials is derived from the format in which the template ↵ | Santiago Pastorino | 2012-02-22 | 2 | -2/+3 |
| | | | | | | is being rendered Closes #5025 part 2 | ||||
* | raises an ArgumentError if no valid options are given to ↵ | Lucas Mazza | 2011-12-21 | 1 | -0/+2 |
| | | | | | | TemplateRenderer#determine_template Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | 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 |
| | |||||
* | Fix another regression related to the layout optimization. | José Valim | 2011-12-08 | 1 | -0/+2 |
| | |||||
* | Fix a regression and also fix broken test. | José Valim | 2011-12-08 | 1 | -4/+9 |
| | |||||
* | Optimize layout lookup to avoid double calls. | José Valim | 2011-12-08 | 1 | -7/+14 |
| | |||||
* | 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 | 2 | -3/+1 |
| | |||||
* | Allow both sym and array for details options in #render. using ↵ | Nick Sutterer | 2011-09-23 | 2 | -2/+13 |
| | | | | LC#registered_details to extract options. | ||||
* | Deprecate passing the template handler in the template name. | José Valim | 2011-09-22 | 1 | -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é Valim | 2011-09-22 | 3 | -37/+29 |
| | |||||
* | it is now possible to pass details options (:formats, :details, :locales, ↵ | Nick Sutterer | 2011-09-22 | 1 | -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é 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 |
|/ | |||||
* | remove warning: assigned but unused variable | Santiago Pastorino | 2011-06-08 | 1 | -1/+1 |
| | |||||
* | Also allow prefixes as third argument to lookup context. | José Valim | 2011-05-04 | 1 | -1/+1 |
| | |||||
* | no @controller dependency in Renderers. | Nick Sutterer | 2011-05-04 | 3 | -16/+10 |
| | |||||
* | Add a shared entry point for AV and AC render which can be used as extension ↵ | José Valim | 2011-05-03 | 1 | -0/+9 |
| | | | | in the future. | ||||
* | Streaming docs. | José Valim | 2011-05-01 | 1 | -40/+1 |
| | |||||
* | log errors when an exception happens when streaming. | José Valim | 2011-05-01 | 1 | -1/+16 |
| | |||||
* | Introduce view renderer. | José Valim | 2011-05-01 | 1 | -23/+10 |
| | |||||
* | Remove view dependency from AV::Renderer. | José Valim | 2011-05-01 | 4 | -66/+57 |
| | |||||
* | More cleanup and moving responsibilities around. | José Valim | 2011-05-01 | 2 | -3/+3 |
| | |||||
* | Remove more dependencies from the view. | José Valim | 2011-05-01 | 2 | -4/+11 |
| | |||||
* | Start abstracting the renderer. | José Valim | 2011-05-01 | 3 | -3/+288 |
| | |||||
* | Output a redirect to the 500 page if something happens when streaming. | José Valim | 2011-04-19 | 1 | -5/+6 |
| | | | | | | Currently, we output: "><script type="text/javascript">window.location = "/500.html"</script></html> | ||||
* | Fix CI test on 1.8 | José Valim | 2011-04-16 | 1 | -1/+4 |
| | |||||
* | Class docs. | José Valim | 2011-04-16 | 1 | -0/+47 |
| | |||||
* | Add more tests, ensure we never yield outside the fiber context and that we ↵ | José Valim | 2011-04-16 | 1 | -1/+1 |
| | | | | swap buffers when moving from parent to child. | ||||
* | Basic tests for streaming. Basic tests for provide. | José Valim | 2011-04-16 | 1 | -1/+1 |
| | |||||
* | Yo dawg, I heard you like streaming. So I put a fiber, inside a block, ↵ | José Valim | 2011-04-16 | 4 | -38/+79 |
| | | | | inside a body, so you can stream. | ||||
* | Initial work on fibered layout. | José Valim | 2011-04-16 | 3 | -3/+38 |
| | |||||
* | render :once, YAGNI. | José Valim | 2011-04-15 | 1 | -25/+0 |
| | |||||
* | 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 | 2 | -2/+2 |
| |