aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
Commit message (Collapse)AuthorAgeFilesLines
* Move middleware and route configuration from AC::Dispatcher to Rails ↵Joshua Peek2009-09-262-10/+3
| | | | application object
* Move default middleware stack into initializerJoshua Peek2009-09-262-20/+1
|
* Move railties/lib/* into railties/lib/*Yehuda Katz + Carl Lerche2009-09-241-0/+1
|
* Resurrect AC::Benchmarking [#3140 state:resolved]Joshua Peek2009-09-242-0/+93
|
* SessionRestoreError belongs in ADJoshua Peek2009-09-231-3/+0
|
* Move helpers specific to functional tests out of TestProcess into AC::TestCaseJoshua Peek2009-09-232-152/+149
|
* Move integration test runner into ActionDispatchJoshua Peek2009-09-234-493/+3
|
* Use NewCallbacks on ActionDispatch::Callbacks.José Valim2009-09-201-1/+1
|
* Add Orchestra instrumentation to fragment and page caching.José Valim2009-09-203-19/+34
|
* Remove global exception catching from ApplicationController.Joshua Peek2009-09-152-48/+7
| | | It was severely broken since it was ported to NewBase and is causing problems with normal exception catching. A replacement is coming soon.
* Uses extlib_inheritable_accessorJeremy Kemper2009-09-141-0/+2
|
* Omit PATH_INFO in integration test so rack mock will properly override itJoshua Peek2009-09-131-1/+0
|
* Memoize in the endpoint.Yehuda Katz2009-09-121-5/+10
|
* Add per-controller middlewareYehuda Katz2009-09-121-1/+14
|
* Fix filtering parameters when there are Fixnum or other un-dupable values.Nathaniel Talbott2009-09-101-1/+1
| | | | | | [#3184 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Cleanup hacky routing with controller_path in url helper tests. This doesn't ↵Joshua Peek2009-09-061-1/+1
| | | | work in real life anyway.
* Refactor ActionController to use find_template and template_exists?Yehuda Katz + Carl Lerche2009-09-032-2/+2
|
* Refactor ActionView::ResolverYehuda Katz + Carl Lerche2009-09-031-1/+1
|
* rack-test 0.4.2 has rack 1.1.pre goodies, we'll use it insteadJoshua Peek2009-08-312-9/+7
|
* Back off rack 1.1-pre and bundle in the new testing goodiesJoshua Peek2009-08-312-2/+3
|
* Ensure that blocks are also handled inside the responder.José Valim2009-08-292-23/+36
|
* Attempt to render the template inside the responder, so it can be used for ↵José Valim2009-08-292-26/+37
| | | | | | caching and pagination. Signed-off-by: Yehuda Katz <wycats@gmail.com>
* Reset session in integration tests after changing routes to reload the ↵Joshua Peek2009-08-271-1/+3
| | | | middleware stack
* Fixed stupid mistake... nothing to see here.Carl Lerche2009-08-261-1/+1
|
* Set the request and response in ActionController::MiddlewareCarl Lerche2009-08-261-0/+4
|
* UrlRewriter#rewrite_url should call #to_param on the value given in :anchor ↵Jeffrey Hardy2009-08-261-1/+1
| | | | | | | | option, just as #url_for does [#2746 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Create new ActionController::Middleware class that will work as a normal ↵Yehuda Katz2009-08-262-22/+34
| | | | | | Rack middleware. * This initial implementation is a bit hackish, but it uses a normal middleware API so it's future-proof when we improve the internals.
* And the same thing for BasicYehuda Katz + Carl Lerche2009-08-251-1/+2
|
* HTTP Auth should not depend on RenderingControllerYehuda Katz + Carl Lerche2009-08-251-1/+2
|
* Redirector had an undeclared dependency on Logger.Yehuda Katz + Carl Lerche2009-08-251-0/+3
|
* Modify Digest and Basic to take a request so they can be used outside of the ↵Yehuda Katz + Carl Lerche2009-08-251-7/+7
| | | | controller
* ActionController::Metal can be a middlewareYehuda Katz + Carl Lerche2009-08-252-12/+36
|
* Move legacy param_parsers config onto AD::ParamsParserJoshua Peek2009-08-211-6/+0
|
* Cleanup route reloading in tests. Prefer with_routing over using ↵Joshua Peek2009-08-161-4/+8
| | | | ActionController::Routing::Routes directly
* Axe "best fit" generation supportJoshua Peek2009-08-151-27/+2
|
* Normalize route generation order: associations, yield block, then own routes.Jeremy Kemper2009-08-151-9/+9
|
* Got tests to pass with some more changes.Yehuda Katz2009-08-152-8/+16
| | | | | | | | | | | | | | | | * 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".
* Caches and cache clearing seems to actually work, but the actual ↵Yehuda Katz2009-08-151-0/+32
| | | | architecture is kind of messy. Next: CLEAN UP.
* Merge branch 'master' of git://github.com/rails/railsJosé Valim2009-08-136-19/+23
|\
| * More perf work:Yehuda Katz2009-08-115-16/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Move #set_cookie and #delete_cookie inline to optimize. These optimizations should almost certainly be sent back upstream to Rack. The optimization involves using an ivar for cookies instead of indexing into the headers each time. * Was able to use a bare Hash for headers now that cookies have their own joining semantics (some code assumed that the raw cookies were an Array). * Cache blankness of body on body= * Improve expand_cache_key for Arrays of a single element (common in our case) * Use a simple layout condition check unless conditions are used * Cache visible actions * Lazily load the UrlRewriter * Make etag an ivar that is set on prepare!
| * Got overhead down from 127 to 85. All tests pass:Yehuda Katz2009-08-113-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Tentatively replaced HeaderHash with SimpleHeaderHash, which does not preserve case but does handle converting Arrays to Strings in to_hash. This requires further discussion. * Moved default_charset to ActionDispatch::Response to avoid having to hop over to ActionController. Ideally, this would be a constant on AD::Response, but some tests expect to be able to change it dynamically and I didn't want to change them yet. * Completely override #initialize from Rack::Response. Previously, it was creating a HeaderHash, and then we were creating an entirely new one. There is no way to call super without incurring the overhead of creating a HeaderHash. * Override #write from Rack::Response. Its implementation tracks Content-Length, and doing so adds additional overhead that could be mooted if other middleware changes the body. It is more efficiently done at the top-level server. * Change sending_file to an instance_variable instead of header inspection. In general, if a state is important, it should be set as a property of the response not reconstructed later. * Set the Etag to @body instead of .body. AS::Cache.expand_cache_key handles Arrays fine, and it's more efficient to let it handle the body parts, since it is not forced to create a joined String. * If we detect the default cache control case, just set it, rather than setting the constituent parts and then running the normal (expensive) code to generate the string.
* | Ensure collections are not treated as nested resources.José Valim2009-08-132-7/+8
|/
* Deprecate router generation "best match" sortingJoshua Peek2009-08-092-6/+30
|
* Added both the documentation and a test case for the collection path name ↵Hugo Peixoto2009-08-091-2/+3
| | | | | | | | customization feature. [#1218 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* path_names could be used to customize collection actions tooBence Nagy2009-08-091-1/+4
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Remove unused routeset method routes_for_controller_and_action in favour for ↵Gabe da Silveira2009-08-091-7/+0
| | | | | | routes_for [#3023 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Allow to configure trusted proxies via ↵Felipe Talavera2009-08-091-0/+2
| | | | | | ActionController::Base.trusted_proxies [#2126 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Make http digest work with different server/browser combinationsJosé Valim2009-08-091-1/+2
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Use response_body rather than performed?Yehuda Katz2009-08-091-1/+1
|
* Fix HTTP basic authentication for long credentials [#2572 state:resolved]Jan Schwenzien2009-08-091-1/+1
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>