Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Return a valid empty JSON on successful PUT and DELETE requests. [#5199 ↵ | Szymon Nowak | 2010-10-12 | 1 | -0/+19 |
| | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Use parentheses when using assert_match followed by a regexp to avoid warnings. | Emilio Tagua | 2010-09-27 | 1 | -2/+2 |
| | |||||
* | Removed deprecated RouteSet API, still many tests fail | Piotr Sarnacki | 2010-09-05 | 1 | -1/+1 |
| | |||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 1 | -5/+5 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | Adds tests for content negotiation change introduced in dc5300adb6d46252c26e | Patrik Stenmark | 2010-07-04 | 1 | -0/+20 |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | Fix a bug where responders were not working properly on method override. | José Valim | 2010-05-24 | 1 | -0/+13 |
| | |||||
* | Added missing require | Santiago Pastorino | 2010-04-16 | 1 | -0/+1 |
| | |||||
* | Fixed a bunch of tests that failed in 1.9 because they assumed that a Rack ↵ | wycats | 2010-03-19 | 1 | -1/+1 |
| | | | | response was a String. | ||||
* | ActionController::Base.use_accept_header is not actually used anymore, so ↵ | Carl Lerche | 2010-03-03 | 1 | -4/+0 |
| | | | | let's deprecate it. | ||||
* | Require persisted? in ActiveModel::Lint and remove new_record? and ↵ | José Valim | 2010-02-21 | 1 | -2/+2 |
| | | | | destroyed? methods. ActionPack does not care if the resource is new or if it was destroyed, it cares only if it's persisted somewhere or not. | ||||
* | Improve missing template error messages a little bit. | José Valim | 2010-01-31 | 1 | -1/+1 |
| | |||||
* | Raise an error if respond_with is invoked and no format is declared. | José Valim | 2010-01-10 | 1 | -68/+62 |
| | |||||
* | Merge branch 'master' of github.com:rails/rails | Yehuda Katz | 2009-12-10 | 1 | -3/+5 |
|\ | |||||
| * | Use new routing dsl in tests | Joshua Peek | 2009-12-08 | 1 | -3/+5 |
| | | |||||
* | | Responder redirects to resource if destroy fails. | José Valim | 2009-12-07 | 1 | -8/+34 |
|/ | | | | Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local> | ||||
* | Allow ActionController::Responder to have a common entry point for all formats. | José Valim | 2009-12-01 | 1 | -0/+17 |
| | | | | Signed-off-by: Yehuda Katz <wycats@Yehuda-Katz.local> | ||||
* | Split mime responder into smaller chunks and allow action to be configured. | José Valim | 2009-11-13 | 1 | -1/+21 |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Unify class_inheritable_accessor and extlib_inheritable_accessor and allow ↵ | José Valim | 2009-10-17 | 1 | -0/+8 |
| | | | | responder to be set in the class level. | ||||
* | Use with_routing helper in tests instead of modifying global route set | Joshua Peek | 2009-10-03 | 1 | -67/+83 |
| | |||||
* | Ensure that blocks are also handled inside the responder. | José Valim | 2009-08-29 | 1 | -0/+7 |
| | |||||
* | Cleanup route reloading in tests. Prefer with_routing over using ↵ | Joshua Peek | 2009-08-16 | 1 | -0/+1 |
| | | | | ActionController::Routing::Routes directly | ||||
* | Got tests to pass with some more changes. | Yehuda Katz | 2009-08-15 | 1 | -34/+17 |
| | | | | | | | | | | | | | | | | * request.formats is much simpler now * For XHRs or Accept headers with a single item, we use the Accept header * For other requests, we use params[:format] or fallback to HTML * This is primarily to work around the fact that browsers provide completely broken Accept headers, so we have to whitelist the few cases we can specifically isolate and treat other requests as coming from the browser * For APIs, we can support single-item Accept headers, which disambiguates from the browsers * Requests to an action that only has an XML template from the browser will no longer find the template. This worked previously because most browsers provide a catch-all */*, but this was mostly accidental behavior. If you want to serve XML, either use the :xml format in links, or explicitly specify the XML template: render "template.xml". | ||||
* | Ensure collections are not treated as nested resources. | José Valim | 2009-08-13 | 1 | -7/+20 |
| | |||||
* | Renamed ActionController::Renderer to ActionController::Responder and ↵ | José Valim | 2009-08-08 | 1 | -5/+5 |
| | | | | ActionController::MimeResponds::Responder to ActionController::MimeResponds::Collector. | ||||
* | Renamed presenter to renderer, added some documentation and defined its API. | José Valim | 2009-08-07 | 1 | -4/+18 |
| | |||||
* | Encapsulate respond_with behavior in a presenter. | José Valim | 2009-08-07 | 1 | -22/+18 |
| | |||||
* | Add destroyed? to ActiveRecord, include tests for polymorphic urls for ↵ | José Valim | 2009-08-07 | 1 | -68/+24 |
| | | | | destroyed objects and refactor mime responds tests and documentation. | ||||
* | Add nagivational behavior to respond_with. | José Valim | 2009-08-07 | 1 | -16/+73 |
| | |||||
* | Added tests for nested resources. | José Valim | 2009-07-31 | 1 | -12/+48 |
| | |||||
* | Allow respond_with to deal with http verb accordingly. | José Valim | 2009-07-31 | 1 | -3/+62 |
| | |||||
* | Remove last TODO. | José Valim | 2009-07-29 | 1 | -1/+1 |
| | | | | Signed-off-by: Yehuda Katz <wycats@gmail.com> | ||||
* | Add a couple more tests to respond_with. | José Valim | 2009-07-29 | 1 | -0/+38 |
| | | | | Signed-off-by: Yehuda Katz <wycats@gmail.com> | ||||
* | Added respond_with. | José Valim | 2009-07-29 | 1 | -1/+69 |
| | | | | Signed-off-by: Yehuda Katz <wycats@gmail.com> | ||||
* | Added tests for respond_to class method. | José Valim | 2009-07-29 | 1 | -2/+68 |
| | | | | Signed-off-by: Yehuda Katz <wycats@gmail.com> | ||||
* | Refactor even more Responder. Move mime negotiation to request and added ↵ | José Valim | 2009-07-29 | 1 | -10/+12 |
| | | | | | | respond_to class method. Signed-off-by: Yehuda Katz <wycats@gmail.com> | ||||
* | Refactor Responder to only calculate available mime types. Those are sent to ↵ | José Valim | 2009-07-29 | 1 | -3/+3 |
| | | | | | | the controller that knows what to do with it (render a block or call default render). Signed-off-by: Yehuda Katz <wycats@gmail.com> | ||||
* | Cleaning up more tests and code that needed to work in both old and new base | Yehuda Katz + Carl Lerche | 2009-06-17 | 1 | -9/+7 |
| | |||||
* | RJS doesn't render with an HTML layout by default | Yehuda Katz + Carl Lerche | 2009-06-17 | 1 | -5/+3 |
| | |||||
* | An exception is raised if a layout is missing only if the layout is missing ↵ | Yehuda Katz + Carl Lerche | 2009-06-16 | 1 | -8/+0 |
| | | | | for all mimes | ||||
* | More _write_layout_method removal | Yehuda Katz + Carl Lerche | 2009-06-15 | 1 | -5/+0 |
| | |||||
* | Got controller/mime_responds_test.rb running on the new base | Yehuda Katz + Carl Lerche | 2009-05-20 | 1 | -11/+15 |
| | |||||
* | Added responds_to to new base. | Yehuda Katz + Carl Lerche | 2009-05-20 | 1 | -9/+15 |
| | |||||
* | Resurrecting 1.9 compatibility. | Carl Lerche & Yehuda Katz | 2009-04-13 | 1 | -2/+2 |
| | |||||
* | Bring abstract_controller up to date with rails/master | Carl Lerche & Yehuda Katz | 2009-04-13 | 1 | -1/+1 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Resolved all the conflicts since 2.3.0 -> HEAD. Following is a list of commits that could not be applied cleanly or are obviated with the abstract_controller refactor. They all need to be revisited to ensure that fixes made in 2.3 do not reappear in 3.0: 2259ecf368e6a6715966f69216e3ee86bf1a82a7 AR not available * This will be reimplemented with ActionORM or equivalent 06182ea02e92afad579998aa80144588e8865ac3 implicitly rendering a js response should not use the default layout [#1844 state:resolved] * This will be handled generically 893e9eb99504705419ad6edac14d00e71cef5f12 Improve view rendering performance in development mode and reinstate template recompiling in production [#1909 state:resolved] * We will need to reimplement rails-dev-boost on top of the refactor; the changes here are very implementation specific and cannot be cleanly applied. The following commits are implicated: 199e750d46c04970b5e7684998d09405648ecbd4 3942cb406e1d5db0ac00e03153809cc8dc4cc4db f8ea9f85d4f1e3e6f3b5d895bef6b013aa4b0690 e3b166aab37ddc2fbab030b146eb61713b91bf55 ae9f258e03c9fd5088da12c1c6cd216cc89a01f7 44423126c6f6133a1d9cf1d0832b527e8711d40f 0cb020b4d6d838025859bd60fb8151c8e21b8e84 workaround for picking layouts based on wrong view_paths [#1974 state:resolved] * The specifics of this commit no longer apply. Since it is a two-line commit, we will reimplement this change. 8c5cc66a831aadb159f3daaffa4208064c30af0e make action_controller/layouts pick templates from the current instance's view_paths instead of the class view_paths [#1974 state:resolved] * This does not apply at all. It should be trivial to apply the feature to the reimplemented ActionController::Base. 87e8b162463f13bd50d27398f020769460a770e3 fix HTML fallback for explicit templates [#2052 state:resolved] * There were a number of patches related to this that simply compounded each other. Basically none of them apply cleanly, and the underlying issue needs to be revisited. After discussing the underlying problem with Koz, we will defer these fixes for further discussion. | ||||
| * | Ruby 1.9 compat: rename deprecated assert_raises to assert_raise. | Jeremy Kemper | 2009-03-08 | 1 | -1/+1 |
| | | | | | | | | [#1617 state:resolved] | ||||
* | | Temporarily modifies setup to call super directly. This can support more ↵ | Yehuda Katz and Carl Lerche | 2009-04-08 | 1 | -0/+3 |
| | | | | | | | | T::U runners. | ||||
* | | Begin unifying the interface between ActionController and ActionView | Yehuda Katz | 2009-01-22 | 1 | -1/+1 |
|/ | |||||
* | Move controller assertions from base TestCase to AC:: and AV::TestCase | Jeremy Kemper | 2008-11-07 | 1 | -10/+6 |
| | |||||
* | Update tests for request memoization | Jeremy Kemper | 2008-08-08 | 1 | -31/+31 |
| | |||||
* | Set global ActionController::Base.view_paths for test cases | Joshua Peek | 2008-07-12 | 1 | -2/+0 |
| |