Aaron Patterson
fd890f6aea
Merge pull request #9857 from yyyc514/bad_params_should_400
...
failure to parse params should trigger a 400 Bad Request
2013-04-30 17:38:56 -07:00
Lewis Marshall
ec462b4de7
Return a 405 response for unknown HTTP methods
2013-04-22 14:31:10 +01:00
Josh Goebel
ea2336b9e2
failure to parse params should trigger a 400 Bad Request
2013-03-21 14:23:46 -04:00
Brian Alexander
8e221127ab
strong parameters exception handling
2013-01-15 17:45:34 -07:00
Ryunosuke SATO
0f103679eb
Suppress warning about IO#lines in Ruby 2.0
...
actionpack/lib/action_dispatch/middleware/exception_wrapper.rb:99: IO#lines is deprecated; use #each_line instead
2013-01-04 23:30:09 +09:00
Akira Matsuda
7bc224dda0
remove meaningless AS::FrozenObjectError
2013-01-02 10:04:58 +09:00
Guillermo Iguaran
5a1b885dd6
Add style to AV::Template::Error exception page
2012-12-31 16:46:37 -05:00
Guillermo Iguaran
fe12e46508
Add source extract to detailed exception page
2012-12-31 13:48:00 -05:00
Yves Senn
370dcd99b7
log 404 status when ActiveRecord::RecordNotFound was raised ( #7646 )
2012-09-17 18:16:41 +02:00
Andrew White
66eb3f02cc
Raise ActionController::BadRequest for malformed parameter hashes.
...
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
2012-05-20 19:07:04 +01:00
Santiago Pastorino
abd6f4a2b1
Move require to where it's needed
2012-05-11 19:00:18 -03:00
Steven Soroka
3532200576
Raise a rescuable exception when Rails doesn't know what to do with the format, rather than responding with a head :not_acceptable (406)
2012-05-06 00:27:45 -05:00
José Valim
750bb5c865
Split ShowExceptions responsibilities in two middlewares.
2011-12-01 20:46:18 +01:00
José Valim
0b677b18ff
Add an ExceptionWrapper that wraps an exception and provide convenience helpers.
2011-12-01 20:02:00 +01:00