1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Allow member actions (get, etc) to accept strings, with test

This commit is contained in:
Andre Arko 2010-08-18 07:31:52 +08:00 committed by José Valim
parent a0ca3d1067
commit fca617af14
2 changed files with 2 additions and 1 deletions

View file

@ -731,6 +731,7 @@ module ActionDispatch
end
elsif resource_method_scope?
path = path_for_custom_action
options[:action] ||= action
options[:as] = name_for_action(options[:as]) if options[:as]
args.push(options)

View file

@ -128,7 +128,7 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest
end
member do
get :some_path_with_name
get 'some_path_with_name'
put :accessible_projects
post :resend, :generate_new_password
end