aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/render_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fixed render :template for templates in top level of view path. [#54 ↵Pratik Naik2008-05-011-0/+20
| | | | state:resolved]
* Make sure render :update support the options hash. Closes #11088 ↵Michael Koziarski2008-02-121-0/+12
| | | | | | [ernesto.jimenez] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8862 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introduce a Template class to ActionView. Closes #11024 [lifofifo]Michael Koziarski2008-02-061-13/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8805 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Correct line numbers from template errors. Closes #10937 [Aleksey Kondratenko]Michael Koziarski2008-01-271-0/+16
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8744 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Reapply the TemplateFinder first applied in [8669] then reverted in [8676]. ↵Michael Koziarski2008-01-211-0/+9
| | | | | | Closes #10800 [lifofifo] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8683 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Support render :text => nil. Closes #6684.Jeremy Kemper2008-01-061-0/+19
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8577 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
* Mark that render tests crash Ruby 1.9Jeremy Kemper2007-12-151-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8410 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* render :xml and :json preserve custom content types. Closes #10388.Jeremy Kemper2007-12-091-10/+30
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8342 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Refactor the default rendering out to a method called default_render to ↵Michael Koziarski2007-10-251-0/+22
| | | | | | provide a hook for plugin authors. Closes #9953 [cjheath] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8011 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat, consistent load pathsJeremy Kemper2007-10-021-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7719 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed JSON encoding to use quoted keys according to the JSON standard ↵David Heinemeier Hansson2007-09-301-3/+3
| | | | | | (closes #8762) [choonkat/chuyeow] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7697 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Remove deprecated functionality from actionpack. Closes #8958 [lifofifo]Michael Koziarski2007-09-031-35/+30
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7403 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Send freshness information when sending Etags. Without this internet ↵Michael Koziarski2007-08-121-0/+1
| | | | | | explorer will not send conditional gets for a resource, but instead hold on to the responses for the current browser session. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7309 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introduce fake_models.rb to avoid platform-specific code. [mpalmer] Closes #8714Michael Koziarski2007-07-171-4/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7190 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow you to render views with periods in the name. Closes #8076 [norbert]Rick Olson2007-07-011-0/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7158 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Assume html format when rendering partials in RJS. #8076 [Rick]Rick Olson2007-06-051-0/+15
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6950 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* add test case for js.erb partials on *.js formatted requestsRick Olson2007-05-151-0/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6735 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Assume that rendered partials go by the HTML format by defaultRick Olson2007-05-151-0/+19
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6734 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that render :xml will try to call to_xml if it can [DHH]David Heinemeier Hansson2007-04-241-9/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6574 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added :location option to render so that the common pattern of rendering a ↵David Heinemeier Hansson2007-04-241-0/+10
| | | | | | response after creating a new resource is now a 1-liner [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6572 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* The default respond_to blocks don't set a specific extension anymore, so ↵Rick Olson2007-04-121-0/+6
| | | | | | that both 'show.rjs' and 'show.js.rjs' will work. [Rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6517 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Change ActionView template defaults. Look for templates using the request ↵Rick Olson2007-04-021-0/+20
| | | | | | format first, such as show.html.erb or show.xml.builder, before looking for the old defaults like show.erb or show.builder [Rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6499 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Its ETag not EtagDavid Heinemeier Hansson2007-02-191-6/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6168 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Move etagging down to response, so renders with layouts dont screw it up [DHH]David Heinemeier Hansson2007-02-191-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6165 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added caching option to AssetTagHelper#stylesheet_link_tag and ↵David Heinemeier Hansson2007-02-181-0/+6
| | | | | | AssetTagHelper#javascript_include_tag [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6164 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow people to set their own etags, if they want more control over the ↵David Heinemeier Hansson2007-02-181-0/+7
| | | | | | process (closes #7580) [] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6163 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Etagging ignores appended and block responses.Jeremy Kemper2007-02-181-5/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6160 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that rendering will automatically insert the etag header on 200 OK ↵David Heinemeier Hansson2007-02-171-0/+46
| | | | | | responses. The etag is calculated using MD5 of the response body. If a request comes in that has a matching etag, the response will be changed to a 304 Not Modified and the response body will be set to an empty string. [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6158 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
* Ensure render :json => ... skips the layout. Closes #6808 [Josh Peek]Rick Olson2006-12-191-0/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5746 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* More thorough JSON tests. Use application/json by default, per rfc4627. ↵Jeremy Kemper2006-12-061-4/+6
| | | | | | References #4185. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5695 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* respond_to recognizes JSON. render :json => @person.to_json automatically ↵Jeremy Kemper2006-12-061-0/+18
| | | | | | sets the content type and takes a :callback option to specify a client-side function to call using the rendered JSON as an argument. References #4185. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5694 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* render_text may optionally append to the response body. render_javascript ↵Jeremy Kemper2006-10-091-0/+21
| | | | | | appends by default. This allows you to chain multiple render :update calls by setting @performed_render = false between them (awaiting a better public API). git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5253 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecation: @request will be removed after 1.2. Use the request method instead.Jeremy Kemper2006-09-291-19/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5201 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* added passing test for using partials with an xml builderRick Olson2006-09-061-0/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5044 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Backed out of locals hash as it caused trouble with Builder, see ticket for moreDavid Heinemeier Hansson2006-09-061-22/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5043 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added locals hash to partials, which makes for convenient access of some ↵David Heinemeier Hansson2006-09-041-0/+22
| | | | | | times available/some times not variables (closes #5491) [wbruce@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4997 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* deprecated render assertionsJeremy Kemper2006-09-041-2/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4977 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dont raise deprecation warning on render :action => "stuff"David Heinemeier Hansson2006-09-041-28/+17
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4975 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* no more render_to_string deprecation warningsJeremy Kemper2006-09-041-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4970 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* deprecated render testsJeremy Kemper2006-09-041-26/+37
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4968 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added defaults to respond_to [DHH]David Heinemeier Hansson2006-03-121-16/+0
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3842 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added option to render action/template/file of a specific extension (and ↵David Heinemeier Hansson2006-03-121-56/+61
| | | | | | here by template type). This means you can have multiple templates with the same name but a different extension [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3841 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure backwards compatibility with symbolized action names for ↵David Heinemeier Hansson2006-02-191-1/+10
| | | | | | render_action (closes #3869) [anna@wota.jp] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3606 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Reset template variables after using render_to_string. Closes #2559Nicholas Seckar2005-10-251-0/+9
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2723 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make string-keys locals assigns optionalNicholas Seckar2005-10-171-2/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2665 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add temporary support for passing locals to render using string keysNicholas Seckar2005-10-161-0/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2630 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added :locals support for render :inline #2463 [mdabney@cavoksolutions.com]David Heinemeier Hansson2005-10-131-0/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2567 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved performance with 5-30% through a series of Action Pack ↵David Heinemeier Hansson2005-07-231-1/+8
| | | | | | optimizations #1811 [Stefan Kaes] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1905 5ecf4fe2-1ee6-0310-87b1-e25e094e27de