aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware
Commit message (Collapse)AuthorAgeFilesLines
* Remove ActionDispatch::Head middleware in favor of Rack::HeadSantiago Pastorino2012-07-231-18/+0
| | | | Closes #7110 there's more work to do on rack-cache issue 69
* Rename RouteInspector to RoutesInspectorCarlos Antonio da Silva2012-07-081-2/+1
| | | | Follow the consistency defined in dbc43bc.
* move route_inspector to actionpack@schneems and @mattt2012-07-071-5/+7
| | | | this is so we can show route output in the development when we get a routing error. Railties can use features of ActionDispatch, but ActionDispatch should not depend on Railties.
* show routes while debugging RoutingErrorschneems2012-07-072-3/+20
| | | | If someone receives a routing error, they likely need to view the routes. Rather than making them visit '/rails/info/routes' or run `rake routes` we can give them that information on the page.
* Use status, content_type, body method signature for render tooSantiago Pastorino2012-06-141-4/+3
|
* Refactor public exceptions to reuse render format methodCarlos Antonio da Silva2012-06-141-9/+6
|
* content_type is already a Mime::Type objectSantiago Pastorino2012-06-121-1/+1
|
* This consider_all_requests_local doesn't make senseSantiago Pastorino2012-06-121-3/+2
| | | | | This middleware is only for Public Exceptions. This follows bd8c0b8a
* Return proper format on exceptionsSantiago Pastorino2012-06-111-14/+36
|
* Raise ActionController::BadRequest for malformed parameter hashes.Andrew White2012-05-201-1/+2
| | | | | | | | | | | | | | Currently Rack raises a TypeError when it encounters a malformed or ambiguous hash like `foo[]=bar&foo[4]=bar`. Rather than pass this through to the application this commit captures the exception and re-raises it using a new ActionController::BadRequest exception. The new ActionController::BadRequest exception returns a 400 error instead of the 500 error that would've been returned by the original TypeError. This allows exception notification libraries to ignore these errors if so desired. Closes #3051
* Add the #unshift method to the middleware stackRich Healey2012-05-181-0/+5
| | | | | | The docs suggest that the middleware stack is an Array, so I've added the unshift method to it. Originally I added some more Array methods, but it was agreed that they lacked usecases.
* Removing ==Examples and last blank lines of docs from actionpackFrancesco Rodriguez2012-05-152-2/+2
|
* Move require to where it's neededSantiago Pastorino2012-05-111-1/+2
|
* doc edits [ci skip]Vijay Dev2012-05-061-3/+2
|
* Merge pull request #5924 from cjolly/signed-cookies-docsVijay Dev2012-05-061-3/+5
|\ | | | | Improve signed cookies documentation
| * Improve signed cookies documentationChad Jolly2012-04-211-3/+5
| |
* | Raise a rescuable exception when Rails doesn't know what to do with the ↵Steven Soroka2012-05-061-0/+1
| | | | | | | | format, rather than responding with a head :not_acceptable (406)
* | Try to convert object passed to debug_hash to hashPiotr Sarnacki2012-05-051-2/+2
| | | | | | | | | | | | | | | | | | | | SessionStore was recently changed to delegate to hash object instead of inherit from it. Since we don't want to extend SessionStore with every method implemented in Hash, it's better to just convert any object passed to debug_hash (which is also better as we don't require to pass Hash instance there, it can be any object that can be converted to Hash).
* | make sure the superclass matches so load order does not matterAaron Patterson2012-05-042-2/+2
| |
* | session creation methods to a moduleAaron Patterson2012-05-043-24/+11
| |
* | create a request session in the cookie storesAaron Patterson2012-05-041-0/+8
| |
* | create a request::session object in the memecache store middlewareAaron Patterson2012-05-041-0/+10
| |
* | Merge branch 'master' into sessionAaron Patterson2012-05-041-1/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (55 commits) extract deprecated dynamic methods Add some docs and changelog entry Allow overriding exception handling in threaded consumer Allow configuring a different queue consumer actually don't need to expand the aggregates at all #to_sym is unnecessary de-globalise method extract code from AR::Base clean up implementation of dynamic methods. use method compilation etc. Fix ActiveModel README example mention database mapping in getting started guide Remove vestiges of the http_only! config from configuring guide Remove content-length as well Make ActionController#head pass rack-link RouteSet: optimize routes generation when globbing is used Allows assert_redirected_to to accept a regular expression use extract_options! No need to force conversion to Symbol since case ensures it's already one. No need to work around 1.8 warnings anymore. Update command line guide ...
| * | Add backtrace to development routing error pageschneems2012-05-021-1/+3
| | | | | | | | | | | | | | | | | | If a user gets a routing error due to a view helper such as using user_path without an :id they must go to their logs to see the backtrace. By adding in the trace template, a user can see which line the error occurred on without leaving the browser. When a routing error occurs outside of the view the application trace will be blank and will not confuse developers.
* | | bread AD::Request::Session to it's own file, consolidate HASH OF DOOM lookupsAaron Patterson2012-05-032-151/+2
| | |
* | | extract options finding to a methodAaron Patterson2012-05-021-4/+7
| | |
* | | testing session store behaviorAaron Patterson2012-05-021-7/+19
| | |
* | | initialize instance variablesAaron Patterson2012-05-021-6/+5
| | |
* | | converted session hash to delegationAaron Patterson2012-05-021-21/+19
| | |
* | | session hash importedAaron Patterson2012-05-021-15/+111
| | |
* | | oops, forgot some semicolonsAaron Patterson2012-05-021-3/+3
| | |
* | | remove unused ivarAaron Patterson2012-05-021-4/+3
| | |
* | | use hash fetches to populate the :id valueAaron Patterson2012-05-021-12/+7
| | |
* | | imported options, switched to object compositionAaron Patterson2012-05-021-13/+56
|/ /
* | * move exception message to exception constructorAaron Patterson2012-05-021-5/+11
| | | | | | | | | | * save original exception * keep original backtrace
* | Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-05-012-4/+4
|\ \
| * | Code-format references to config settingsMark Rushakoff2012-04-272-2/+2
| | |
| * | More using <tt>x</tt> instead of +x+ when the latter renders improperly.Mark Rushakoff2012-04-271-2/+2
| | |
* | | Merge pull request #6084 from brainopia/support_for_magic_domain_on_all_storesJosé Valim2012-04-301-0/+7
|\ \ \ | | | | | | | | Support cookie jar options for all cookie stores
| * | | Support cookie jar options for all cookie storesbrainopia2012-04-301-0/+7
| |/ /
* | | Merge pull request #6082 from brainopia/smarter_cookie_jarJosé Valim2012-04-301-7/+10
|\ \ \ | | | | | | | | Stream cookies only if needed
| * | | Dont stream back cookie value if it was set to the same valuebrainopia2012-04-301-4/+6
| | | |
| * | | Dont set cookie header for deletion of unexisting databrainopia2012-04-301-1/+2
| | | |
| * | | Simplify matching with array of possible domainsbrainopia2012-04-301-1/+1
| | | |
| * | | Use more appropriate one-liner for class declarationbrainopia2012-04-301-1/+1
| | | |
* | | | Merge pull request #6083 from brainopia/remove_unused_closed_ivarsJosé Valim2012-04-302-2/+0
|\ \ \ \ | |/ / / |/| | | Remove a couple of unused ivars left from previous refactoring
| * | | Remove unused ivars left from close checksbrainopia2012-04-302-2/+0
| |/ / | | | | | | | | | These ivars were missed in d142572567 when close checks were removed
* | | Merge pull request #6034 from ↵Piotr Sarnacki2012-04-301-6/+3
|\ \ \ | | | | | | | | | | | | | | | | willbryant/flash_must_not_load_session_on_every_request_master Fix the Flash middleware loading the session on every request
| * | | fix the Flash middleware loading the session on every request (very ↵Will Bryant2012-04-281-6/+3
| |/ / | | | | | | | | | dangerous especially with Rack::Cache), it should only be loaded when the flash method is called
* / / Remove unused assignmentsMark Rushakoff2012-04-291-1/+0
|/ /