aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/partials.rb
Commit message (Collapse)AuthorAgeFilesLines
* Start abstracting the renderer.José Valim2011-05-011-226/+0
|
* Accept String value for render_partial :as optionAkira Matsuda2011-02-011-1/+1
| | | | | | [#6222 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* .erb => .html.erbAkira Matsuda2010-12-251-5/+5
|
* for ... in => each ... doAkira Matsuda2010-12-251-5/+5
|
* Mention the case that `render` will return nil if given `:collection` is nil ↵Prem Sichanugrist2010-11-211-0/+5
| | | | or empty when rendering partial.
* SReorganize autoloads slightly and move two files to lib/action_view root.José Valim2010-10-141-0/+221
|
* Begin unifying the interface between ActionController and ActionViewYehuda Katz2009-01-221-235/+0
|
* Ensure the template format is always passed to the template finder. Now we ↵Joshua Peek2008-12-211-1/+1
| | | | can cleanup some nasty stuff.
* Changed the default of ActionView#render to assume partials instead of files ↵David Heinemeier Hansson2008-11-191-0/+32
| | | | when not given an options hash [DHH]
* Dup local assigns for partial collections so nil values doesn't get ↵Joshua Peek2008-10-301-1/+1
| | | | overwritten [#1250 state:resolved]
* Moved layout exemption logic into the viewJoshua Peek2008-08-311-1/+1
|
* The view context always responds to controller, check if controller ↵Joshua Peek2008-08-251-1/+1
| | | | available instead
* Ensure :partial => @collection and :collection => @collection behaves same. ↵Ryan Bates2008-08-221-1/+1
| | | | | | [#884 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Tidy up pick partial template logicJoshua Peek2008-08-211-18/+12
|
* Cleanup around partial renderingRyan Bates2008-08-211-33/+50
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Return nil instead of a space when passing an empty collection or nil to ↵Ryan Bates2008-08-191-1/+1
| | | | | | 'render :partial' [#791 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* pass yielded arguments to block for ActionView::Base#render with :layout ↵Ryan Bates2008-08-171-2/+36
| | | | | | [#847 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Fix rendering partials at the top level [#795 state:resolved]Joshua Peek2008-08-131-1/+1
|
* Fixed bc5896e, and added test case for the caching bug it originally introduced.Joshua Peek2008-07-231-4/+5
|
* Revert 'bc5896e'Joshua Peek2008-07-231-5/+4
|
* Memoize ActionView::Base pick_template and find_partial_path for rendering ↵Joshua Peek2008-07-221-4/+5
| | | | duration
* Eager load Partial variable_name and counter_name. Tidy up ↵Joshua Peek2008-07-141-24/+9
| | | | render_partial_collection.
* Refactor template preloading. New abstractions include Renderable mixins and ↵Joshua Peek2008-07-121-22/+36
| | | | a refactored Template class.
* Add :as option to render a collection of partials with a custom local ↵Pratik Naik2008-07-021-7/+7
| | | | variable name. [#509 state:resolved] [Simon Jefford, Pratik Naik]
* Make render shorthands work with namespaced controllersJacek Becela2008-05-101-2/+2
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Improve documentation coverage and markupXavier Noria2008-05-021-1/+1
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Capture view errors in ActionView::Template.Nathan Weizenbaum2008-05-021-1/+1
| | | | | | | This means that errors raised by partials are caught by ActionView::PartialTemplate, which in turn means they have the proper filename and line number information. Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Fixed render :partial => @collection.named_scope (nkallen) [#61 state:resolved]David Heinemeier Hansson2008-04-301-1/+1
|
* Remove unnecessary arguments. References #11491.Pratik Naik2008-04-011-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9179 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Support render :partial => collection of heterogeneous elements. Closes #11491.Jeremy Kemper2008-04-011-7/+25
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9177 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Refactor partial rendering into a PartialTemplate class. [Pratik]Michael Koziarski2008-03-031-80/+14
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8976 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix problem with render :partial collections, records, and locals. #11057 ↵Marcel Molina2008-02-081-2/+2
| | | | | | [lotswholetime] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8822 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Cache partial variable names to reduce garbageJeremy Kemper2008-02-031-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8793 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use File.join to construct partial path. Closes #10932 [patrick.t.joyce]Michael Koziarski2008-01-271-3/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8739 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make render :partial recognise form builders and use the _form partial. ↵Michael Koziarski2008-01-161-0/+3
| | | | | | Closes #10814 [djanowski] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8646 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Only Benchmark and log if we're going to output the information.Michael Koziarski2007-11-141-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8136 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that has_many :through associations should render as collections too ↵David Heinemeier Hansson2007-11-121-1/+1
| | | | | | (closes #9051) [mathie/danger] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8130 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Partials also set 'object' to the default partial variable. Closes #8823.Jeremy Kemper2007-10-251-6/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8018 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Stop rdoc from whiningDavid Heinemeier Hansson2007-09-241-5/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7622 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove deprecated functionality from actionpack. Closes #8958 [lifofifo]Michael Koziarski2007-09-031-15/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7403 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added partial layouts (see example in action_view/lib/partials.rb) [DHH]David Heinemeier Hansson2007-08-021-0/+57
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7261 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow you to render views with periods in the name. Closes #8076 [norbert]Rick Olson2007-07-011-4/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7158 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* render :partial recognizes Active Record associations as Arrays. Closes #8538.Jeremy Kemper2007-06-011-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6920 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Clean up the simply_helpful merge.Jeremy Kemper2007-05-181-9/+24
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6751 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecation: privatize deprecated render_partial and ↵Jeremy Kemper2007-03-131-43/+43
| | | | | | render_partial_collection methods. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6404 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added .erb and .builder as preferred aliases to the now deprecated .rhtml ↵David Heinemeier Hansson2007-02-201-5/+5
| | | | | | and .rxml extensions [Chad Fowler]. This is done to separate the renderer from the mime type. .erb templates are often used to render emails, atom, csv, whatever. So labeling them .rhtml doesn't make too much sense. The same goes for .rxml, which can be used to build everything from HTML to Atom to whatever. .rhtml and .rxml will continue to work until Rails 3.0, though. So this is a slow phasing out. All generators and examples will start using the new aliases, though. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6178 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Inline a method used by render_partial. Closes #2881.Jeremy Kemper2005-11-171-9/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3073 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Avoid logging code if logger is nil. Closes #2881.Jeremy Kemper2005-11-161-4/+15
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3056 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that an instance variable with the same name as a partial should be ↵Sam Stephenson2005-10-101-1/+6
| | | | | | implicitly passed as the partial :object. Closes #2269. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2522 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Better logging about partials when logger to to debugDavid Heinemeier Hansson2005-10-011-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2432 5ecf4fe2-1ee6-0310-87b1-e25e094e27de