Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 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 | |||||
* | Refactor the default rendering out to a method called default_render to ↵ | Michael Koziarski | 2007-10-25 | 1 | -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 paths | Jeremy Kemper | 2007-10-02 | 1 | -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 Hansson | 2007-09-30 | 1 | -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 Koziarski | 2007-09-03 | 1 | -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 Koziarski | 2007-08-12 | 1 | -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 #8714 | Michael Koziarski | 2007-07-17 | 1 | -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 Olson | 2007-07-01 | 1 | -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 Olson | 2007-06-05 | 1 | -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 requests | Rick Olson | 2007-05-15 | 1 | -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 default | Rick Olson | 2007-05-15 | 1 | -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 Hansson | 2007-04-24 | 1 | -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 Hansson | 2007-04-24 | 1 | -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 Olson | 2007-04-12 | 1 | -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 Olson | 2007-04-02 | 1 | -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 Etag | David Heinemeier Hansson | 2007-02-19 | 1 | -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 Hansson | 2007-02-19 | 1 | -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 Hansson | 2007-02-18 | 1 | -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 Hansson | 2007-02-18 | 1 | -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 Kemper | 2007-02-18 | 1 | -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 Hansson | 2007-02-17 | 1 | -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 Olson | 2007-02-04 | 1 | -2/+2 | |
| | | | | | | template_root. Closes #2754 [John Long] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6120 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |