aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/new_render_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge RenderTest and NewRenderTestJoshua Peek2008-08-291-983/+0
|
* Deprecated implicit local assignments when rendering partialsJoshua Peek2008-08-281-2/+4
|
* pass yielded arguments to block for ActionView::Base#render with :layout ↵Ryan Bates2008-08-171-0/+9
| | | | | | [#847 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Added tests for partial collection counters [#766 state:resolved]Cameron Yule2008-08-091-0/+9
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Set global ActionController::Base.view_paths for test casesJoshua Peek2008-07-121-3/+0
|
* Rendering default template for missing actions works with non-word ↵Jeremy Kemper2008-07-091-0/+5
| | | | characters in action name
* Move template_format logic out to the request so it's alongside the ↵Michael Koziarski2008-07-031-2/+1
| | | | | | 'regular' request format. Use xhr? instead of the expensive trip through Request#accepts.
* Deprecate :use_full_path render option. The supplying the option no longer ↵Joshua Peek2008-07-021-4/+4
| | | | has an effect.
* Add :as option to render a collection of partials with a custom local ↵Pratik Naik2008-07-021-0/+9
| | | | variable name. [#509 state:resolved] [Simon Jefford, Pratik Naik]
* Make sure render :template works with :locals. [#524 state:resolved]Tim Haines2008-07-021-0/+9
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Set precompiled fixture load path constant to speed up testsJoshua Peek2008-06-251-55/+54
|
* Delegate ActionView::Base#controller_name to controllerPratik Naik2008-06-101-3/+12
|
* Ensure render :file works inside templatesPratik Naik2008-06-051-0/+10
|
* Make partial counter start from 0.Frederick Cheung2008-06-051-2/+2
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Delegate action_name to controller inside views.Pratik Naik2008-05-061-0/+9
|
* Delegate ivars to controller instead of copyingPratik Naik2008-04-211-4/+15
| | | | | Reduce number of instance variables being copied from controller to view. Instead, delegate them to controller instance.
* Remove ActionController::Base#view_controller_internalsPratik Naik2008-04-211-16/+0
| | | | | | Get rid of ActionController::Base#view_controller_internals flag and use @@protected_view_variables for storing the list of controller specific instance variables which should be inaccessible inside views.
* Move missing template logic to ActionViewPratik Naik2008-04-191-2/+2
|
* Support render :partial => collection of heterogeneous elements. Closes #11491.Jeremy Kemper2008-04-011-0/+20
| | | | 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-1/+19
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8976 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that requests with JavaScript as the priority mime type in the accept ↵David Heinemeier Hansson2008-02-291-0/+6
| | | | | | header and no format extension in the parameters will be treated as though their format was :js when it comes to determining which template to render. This makes it possible for JS requests to automatically render action.js.rjs files without an explicit respond_to block [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8956 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix problem with render :partial collections, records, and locals. #11057 ↵Marcel Molina2008-02-081-0/+9
| | | | | | [lotswholetime] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8822 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introduce the :index option for form_for and fields_for to simplify ↵Jeremy Kemper2008-02-021-3/+3
| | | | | | multi-model forms (see http://railscasts.com/episodes/75). Closes #9883. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8786 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Reapply the TemplateFinder first applied in [8669] then reverted in [8676]. ↵Michael Koziarski2008-01-211-10/+0
| | | | | | Closes #10800 [lifofifo] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8683 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Revert r8669 for now, breaks Action Mailer. Reopens #10800.Jeremy Kemper2008-01-191-0/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8676 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introduce TemplateFinder to handle view paths and lookups. Closes #10800.Jeremy Kemper2008-01-191-10/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8669 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make render :partial recognise form builders and use the _form partial. ↵Michael Koziarski2008-01-161-0/+23
| | | | | | Closes #10814 [djanowski] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8646 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* require abstract_unit directly since test is in load pathJeremy Kemper2008-01-051-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8564 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed rendering of partials with layout when done from site layout (closes ↵David Heinemeier Hansson2008-01-031-2/+25
| | | | | | #9209) [antramm] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8541 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: introduce instance_variable_names. Closes #10630 [Frederick ↵Jeremy Kemper2007-12-281-0/+1
| | | | | | Cheung] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8499 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix up template handler tests. Closes #10437.Jeremy Kemper2007-12-101-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8372 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Partials also set 'object' to the default partial variable. Closes #8823.Jeremy Kemper2007-10-251-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8018 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove deprecated functionality from actionpack. Closes #8958 [lifofifo]Michael Koziarski2007-09-031-4/+22
| | | | 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-1/+19
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7261 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introduce fake_models.rb to avoid platform-specific code. [mpalmer] Closes #8714Michael Koziarski2007-07-171-6/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7190 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* catch possible WSOD when trying to render a missing partial. Closes #8454 ↵Rick Olson2007-05-241-0/+10
| | | | | | [Catfish] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6826 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix render :location => ... test.Jeremy Kemper2007-05-181-4/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6762 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added url_for usage on render :location, which allows for record ↵David Heinemeier Hansson2007-05-171-1/+19
| | | | | | identification [DHH] (still need to figure out why that test doesnt pass, seems like a test issue) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6750 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that render :xml will try to call to_xml if it can [DHH]David Heinemeier Hansson2007-04-241-1/+25
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6574 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecation: remove deprecated instance variables.Jeremy Kemper2007-03-131-8/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6399 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added .erb and .builder as preferred aliases to the now deprecated .rhtml ↵David Heinemeier Hansson2007-02-201-4/+4
| | | | | | 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
* Fix tests depending too deepDavid Heinemeier Hansson2007-02-191-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6169 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow Controllers to have multiple view_paths instead of a single ↵Rick Olson2007-02-041-2/+2
| | | | | | template_root. Closes #2754 [John Long] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6120 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Test proving render_to_string result passed to partial works. Closes #2541. ↵Jeremy Kemper2007-01-121-1/+13
| | | | | | [smeade] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5893 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure render_to_string cleans up after itself when an exception is raised. ↵Jeremy Kemper2006-11-201-0/+48
| | | | | | Closes #6658. Great tests! git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5591 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* assert_response supports symbolic status codes. Closes #6569.Jeremy Kemper2006-11-071-0/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5466 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecation: @request will be removed after 1.2. Use the request method instead.Jeremy Kemper2006-09-291-3/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5201 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* modify head so that you can specify a bare status code as the first parameterJamis Buck2006-09-281-1/+12
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5200 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add ActionController::Base#head for rendering empty responses. Add support ↵Jamis Buck2006-09-281-0/+59
| | | | | | for symbolic status codes, as well as for having raw integer statuses expand with their default messages. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5199 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update RJS render tests.Sam Stephenson2006-09-201-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5155 5ecf4fe2-1ee6-0310-87b1-e25e094e27de