Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Accept String value for render_partial :as option | Akira Matsuda | 2011-02-01 | 1 | -1/+1 |
| | | | | | | [#6222 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | .erb => .html.erb | Akira Matsuda | 2010-12-25 | 1 | -5/+5 |
| | |||||
* | for ... in => each ... do | Akira Matsuda | 2010-12-25 | 1 | -5/+5 |
| | |||||
* | Mention the case that `render` will return nil if given `:collection` is nil ↵ | Prem Sichanugrist | 2010-11-21 | 1 | -0/+5 |
| | | | | or empty when rendering partial. | ||||
* | SReorganize autoloads slightly and move two files to lib/action_view root. | José Valim | 2010-10-14 | 1 | -0/+221 |
| | |||||
* | Begin unifying the interface between ActionController and ActionView | Yehuda Katz | 2009-01-22 | 1 | -235/+0 |
| | |||||
* | Ensure the template format is always passed to the template finder. Now we ↵ | Joshua Peek | 2008-12-21 | 1 | -1/+1 |
| | | | | can cleanup some nasty stuff. | ||||
* | Changed the default of ActionView#render to assume partials instead of files ↵ | David Heinemeier Hansson | 2008-11-19 | 1 | -0/+32 |
| | | | | when not given an options hash [DHH] | ||||
* | Dup local assigns for partial collections so nil values doesn't get ↵ | Joshua Peek | 2008-10-30 | 1 | -1/+1 |
| | | | | overwritten [#1250 state:resolved] | ||||
* | Moved layout exemption logic into the view | Joshua Peek | 2008-08-31 | 1 | -1/+1 |
| | |||||
* | The view context always responds to controller, check if controller ↵ | Joshua Peek | 2008-08-25 | 1 | -1/+1 |
| | | | | available instead | ||||
* | Ensure :partial => @collection and :collection => @collection behaves same. ↵ | Ryan Bates | 2008-08-22 | 1 | -1/+1 |
| | | | | | | [#884 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Tidy up pick partial template logic | Joshua Peek | 2008-08-21 | 1 | -18/+12 |
| | |||||
* | Cleanup around partial rendering | Ryan Bates | 2008-08-21 | 1 | -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 Bates | 2008-08-19 | 1 | -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 Bates | 2008-08-17 | 1 | -2/+36 |
| | | | | | | [#847 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Fix rendering partials at the top level [#795 state:resolved] | Joshua Peek | 2008-08-13 | 1 | -1/+1 |
| | |||||
* | Fixed bc5896e, and added test case for the caching bug it originally introduced. | Joshua Peek | 2008-07-23 | 1 | -4/+5 |
| | |||||
* | Revert 'bc5896e' | Joshua Peek | 2008-07-23 | 1 | -5/+4 |
| | |||||
* | Memoize ActionView::Base pick_template and find_partial_path for rendering ↵ | Joshua Peek | 2008-07-22 | 1 | -4/+5 |
| | | | | duration | ||||
* | Eager load Partial variable_name and counter_name. Tidy up ↵ | Joshua Peek | 2008-07-14 | 1 | -24/+9 |
| | | | | render_partial_collection. | ||||
* | Refactor template preloading. New abstractions include Renderable mixins and ↵ | Joshua Peek | 2008-07-12 | 1 | -22/+36 |
| | | | | a refactored Template class. | ||||
* | Add :as option to render a collection of partials with a custom local ↵ | Pratik Naik | 2008-07-02 | 1 | -7/+7 |
| | | | | variable name. [#509 state:resolved] [Simon Jefford, Pratik Naik] | ||||
* | Make render shorthands work with namespaced controllers | Jacek Becela | 2008-05-10 | 1 | -2/+2 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Improve documentation coverage and markup | Xavier Noria | 2008-05-02 | 1 | -1/+1 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Capture view errors in ActionView::Template. | Nathan Weizenbaum | 2008-05-02 | 1 | -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 Hansson | 2008-04-30 | 1 | -1/+1 |
| | |||||
* | Remove unnecessary arguments. References #11491. | Pratik Naik | 2008-04-01 | 1 | -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 Kemper | 2008-04-01 | 1 | -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 Koziarski | 2008-03-03 | 1 | -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 Molina | 2008-02-08 | 1 | -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 garbage | Jeremy Kemper | 2008-02-03 | 1 | -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 Koziarski | 2008-01-27 | 1 | -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 Koziarski | 2008-01-16 | 1 | -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 Koziarski | 2007-11-14 | 1 | -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 Hansson | 2007-11-12 | 1 | -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 Kemper | 2007-10-25 | 1 | -6/+8 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8018 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Stop rdoc from whining | David Heinemeier Hansson | 2007-09-24 | 1 | -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 Koziarski | 2007-09-03 | 1 | -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 Hansson | 2007-08-02 | 1 | -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 Olson | 2007-07-01 | 1 | -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 Kemper | 2007-06-01 | 1 | -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 Kemper | 2007-05-18 | 1 | -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 Kemper | 2007-03-13 | 1 | -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 Hansson | 2007-02-20 | 1 | -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 Kemper | 2005-11-17 | 1 | -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 Kemper | 2005-11-16 | 1 | -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 Stephenson | 2005-10-10 | 1 | -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 debug | David Heinemeier Hansson | 2005-10-01 | 1 | -1/+3 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2432 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Streamline render process, code cleaning. Closes #2294. | Nicholas Seckar | 2005-09-27 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2368 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |