1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test/dispatch
Jamie Macey 3e67e45dc3 Allow a defining custom member field on resources
By default, resources routes are created with :resource/:id. A model
defining to_param can make prettier urls by using something more
readable than an integer ID, but since the route picks it up as :id you
wind up with awkward User.find_by_username(params[:id]) calls.

By overriding the key to be used in @request.params you can be more
obvious in your intent.
2012-03-25 21:42:18 -07:00
..
middleware_stack
request Moved all the logger methods to active support logger 2012-01-06 00:38:46 +05:30
session Remove rescue_action from compatibility module and tests 2012-01-17 10:04:37 -02:00
callbacks_test.rb ActionDispatch: add missing test for callbacks 2012-02-16 15:58:58 +02:00
cookies_test.rb ActionDispatch::Cookies::CookieJar#deleted? predicate method. 2012-01-24 00:31:22 +11:00
debug_exceptions_test.rb Removed unused assigns from ActionView::Template::Error 2012-01-20 20:13:29 +04:00
header_test.rb
mapper_test.rb all routes can be stored in the Journey Routes object 2011-09-12 16:50:48 -07:00
middleware_stack_test.rb Fix GH #4873. Allow swapping middleware of same class 2012-02-04 22:59:13 +09:00
mime_type_test.rb Added parsing of arbitrary media type parameters. 2012-03-05 15:10:23 -05:00
mount_test.rb adding tests for #4029 2011-12-19 13:34:54 -08:00
prefix_generation_test.rb Override respond_to? since we are also overriding method_missing. 2012-01-03 20:26:45 +01:00
rack_cache_test.rb
rack_test.rb
reloader_test.rb Use a BodyProxy instead of including a Module that responds to close. 2012-01-13 19:46:13 -02:00
request_id_test.rb removed warning "warning: ambiguous first argument; put parentheses or even spaces" 2011-12-21 21:22:39 +05:30
request_test.rb Add config.default_method_for_update to support PATCH 2012-02-22 08:47:10 -08:00
response_test.rb deprecate String#encoding_aware? and remove its usage 2011-12-24 15:57:54 +03:00
routing_assertions_test.rb Fix the assert_recognizes test method so that it works when there are 2012-02-24 13:16:31 +00:00
routing_test.rb Allow a defining custom member field on resources 2012-03-25 21:42:18 -07:00
show_exceptions_test.rb Removed unused assigns from ActionView::Template::Error 2012-01-20 20:13:29 +04:00
ssl_test.rb Fix secure cookies when there are more than one space before the secure 2012-03-19 16:31:57 -03:00
static_test.rb fix ArgumentError being raised in case of invalid byte sequences 2012-03-08 20:41:25 +09:00
test_request_test.rb assert nothing raised for setting a cookie value to nil in ActionDispatch 2011-07-14 14:01:39 -05:00
test_response_test.rb
uploaded_file_test.rb Refactor AD::UploadedFile, and raise sooner if tempfile is not present 2012-03-06 18:34:20 -03:00
url_generation_test.rb