Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Ensure expires_in without a :public key sets the Cache-Control header to ↵ | Johan Sørensen | 2009-03-07 | 1 | -1/+1 |
| | | | | | | | | | private. [#2095 state:resolved] This fixes a regression introduced in f2a32bd0, which wasn't exposed due to two test methods having the same name. Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Added ability to pass in :public => true to fresh_when, stale?, and ↵ | Gregg Pollack | 2009-02-28 | 1 | -0/+72 |
| | | | | | | expires_in to make the request proxy cachable [#2095 state:committed] Signed-off-by: David Heinemeier Hansson <david@loudthinking.com> | ||||
* | correctly handle layouts for AJAX requests and regular js files [#2052 ↵ | Matt Jones | 2009-02-24 | 1 | -4/+5 |
| | | | | | | state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | implicitly rendering a js response should not use the default layout [#1844 ↵ | Adam McCrea | 2009-02-05 | 1 | -1/+10 |
| | | | | | | state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Restore implicit rendering for XHR requests that want a HTML template [#1590 ↵ | Joshua Peek | 2009-01-27 | 1 | -0/+8 |
| | | | | state:resolved] | ||||
* | Remove Content-Length header from :no_content responses | Jeremy Kemper | 2009-01-07 | 1 | -1/+6 |
| | |||||
* | Make ActionController#render(symbol) behave same as ↵ | Pratik Naik | 2008-12-26 | 1 | -1/+10 |
| | | | | ActionController#render(string) [#1435] | ||||
* | Make ActionController#render(string) work as a shortcut for render :action ↵ | Pratik Naik | 2008-12-25 | 1 | -0/+19 |
| | | | | | | | | | | => string. [#1435] Examples: # Instead of render(:action => 'other_action') render('other_action') Note : Argument must not have any '/' | ||||
* | Make ActionController#render(string) work as a shortcut for render :template ↵ | Pratik Naik | 2008-12-25 | 1 | -0/+21 |
| | | | | | | | | | | => string. [#1435] Examples: # Instead of render(:template => 'controller/action') render('controller/action') Note : Argument must not begin with a '/', but have at least one '/' | ||||
* | Make ActionController#render(string) work as a shortcut for render :file => ↵ | Pratik Naik | 2008-12-25 | 1 | -8/+21 |
| | | | | | | | | | | string. [#1435] Examples: # Instead of render(:file => '/Users/lifo/home.html.erb') render('/Users/lifo/home.html.erb') Note : Filename must begin with a forward slash ('/') | ||||
* | Make render_test.rb run in isolation | Pratik Naik | 2008-12-25 | 1 | -0/+2 |
| | |||||
* | Rename AbstractResponse to Response and inheirt from Rack::Response | Joshua Peek | 2008-12-19 | 1 | -5/+5 |
| | |||||
* | Use status response accessor instead of the 'Status' header | Joshua Peek | 2008-12-19 | 1 | -2/+2 |
| | |||||
* | Do not output an ETag header if response body is blank or when sending files ↵ | Hongli Lai (Phusion | 2008-12-16 | 1 | -0/+9 |
| | | | | | | with send_file(... :xsendfile => true) [#1578 state:committed] Signed-off-by: David Heinemeier Hansson <david@loudthinking.com> | ||||
* | Add :partial option to assert_template [#1550 state:resolved] | mark | 2008-12-11 | 1 | -0/+7 |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Set template_format to html inside rjs templates so renders within it ↵ | Joshua Peek | 2008-12-04 | 1 | -14/+0 |
| | | | | default to html. | ||||
* | Fix rendering html partials from an rjs template | Sam Stephenson | 2008-12-04 | 1 | -0/+24 |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Change the forgery token implementation to just be a simple random string. | Michael Koziarski | 2008-11-23 | 1 | -1/+2 |
| | | | | This deprecates the use of :secret and :digest which were only needed when we were hashing session ids. | ||||
* | Fix rendering html partial via inline render when with :js format [#1399 ↵ | Luke Melia | 2008-11-18 | 1 | -0/+14 |
| | | | | | | state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Prevent assert_template failures when a render :inline is called before ↵ | Luke Melia | 2008-11-17 | 1 | -9/+19 |
| | | | | | | rendering a file-based template [#1383 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Move controller assertions from base TestCase to AC:: and AV::TestCase | Jeremy Kemper | 2008-11-07 | 1 | -20/+12 |
| | |||||
* | Added render :js for people who want to render inline JavaScript replies ↵ | David Heinemeier Hansson | 2008-11-01 | 1 | -0/+10 |
| | | | | without using RJS [DHH] | ||||
* | Ensure content type gets reset after render_to_string [#1182 state:resolved] | Joshua Peek | 2008-10-30 | 1 | -0/+10 |
| | |||||
* | Dont try to auto-set the etag based on the body if any freshness headers ↵ | David Heinemeier Hansson | 2008-10-21 | 1 | -5/+22 |
| | | | | have already been set [DHH/José Valim] | ||||
* | Let fresh_when actually do the head(:not_modified). Cleaner and we get the ↵ | David Heinemeier Hansson | 2008-10-21 | 1 | -3/+1 |
| | | | | filter halting for free then. | ||||
* | Added stale?/fresh? and fresh_when methods to provide a layer of abstraction ↵ | David Heinemeier Hansson | 2008-10-21 | 1 | -11/+14 |
| | | | | above request.fresh? and friends [DHH] | ||||
* | Make sure last_modified! works with <= rather than just equality. | Michael Koziarski | 2008-10-07 | 1 | -0/+6 |
| | |||||
* | Fix etag! and last_modified! to work as advertised. | Michael Koziarski | 2008-09-30 | 1 | -1/+40 |
| | | | | Add tests too. | ||||
* | Don't set Content-Length on 304 responses | Jonathan del Strother | 2008-09-02 | 1 | -0/+6 |
| | | | | | | | | | Commit 8aad8c claimed to do this, but it checks for the 304 status too early, before handle_conditional_get! has overridden it. [#958 state:resolved] Signed-off-by: Jonathan del Strother <jon.delStrother@bestbefore.tv> Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Fix AM tests and add tests for rendering logging | Pratik Naik | 2008-08-31 | 1 | -0/+30 |
| | |||||
* | Add test to make sure RJS block inside controller is executed in view context | Pratik Naik | 2008-08-30 | 1 | -0/+13 |
| | |||||
* | Merge RenderTest and NewRenderTest | Joshua Peek | 2008-08-29 | 1 | -27/+822 |
| | |||||
* | 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> | ||||
* | Update tests for request memoization | Jeremy Kemper | 2008-08-08 | 1 | -13/+13 |
| | |||||
* | Simplifying usage of ETags and Last-Modified and conditional GET requests | Jeremy Kemper | 2008-08-07 | 1 | -3/+8 |
| | |||||
* | Set the response content type to that of found template if not explicitly ↵ | Tom Ward | 2008-07-18 | 1 | -5/+10 |
| | | | | | | set elsewhere [#444 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | etag! and last_modified! conditional GET helpers | Jeremy Kemper | 2008-07-17 | 1 | -53/+99 |
| | |||||
* | Try to get more useful errors out of the test_line_offset failures | Michael Koziarski | 2008-07-15 | 1 | -10/+10 |
| | |||||
* | Set global ActionController::Base.view_paths for test cases | Joshua Peek | 2008-07-12 | 1 | -3/+0 |
| | |||||
* | Tighten the rescue clause here to prevent hiding strange mock related errors ↵ | Michael Koziarski | 2008-07-03 | 1 | -1/+1 |
| | | | | behind the line offset test | ||||
* | Set precompiled fixture load path constant to speed up tests | Joshua Peek | 2008-06-25 | 1 | -14/+13 |
| | |||||
* | Fixed render :template for templates in top level of view path. [#54 ↵ | Pratik Naik | 2008-05-01 | 1 | -0/+20 |
| | | | | state:resolved] | ||||
* | Make sure render :update support the options hash. Closes #11088 ↵ | Michael Koziarski | 2008-02-12 | 1 | -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 Koziarski | 2008-02-06 | 1 | -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 Koziarski | 2008-01-27 | 1 | -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 Koziarski | 2008-01-21 | 1 | -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 Kemper | 2008-01-06 | 1 | -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 path | Jeremy Kemper | 2008-01-05 | 1 | -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.9 | Jeremy Kemper | 2007-12-15 | 1 | -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 Kemper | 2007-12-09 | 1 | -10/+30 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8342 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |