Last active

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View gist:46f8f281ddeef7107c14
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
resources :subscriptions, only: [:index] do
collection do
delete 'destroy'
get 'edit'
put 'update'
end
end
 
Rails 3 generates :
 
subscriptions DELETE /subscriptions(.:format) subscriptions#destroy
edit_subscriptions GET /subscriptions/edit(.:format) subscriptions#edit
PUT /subscriptions(.:format) subscriptions#update
GET /subscriptions(.:format) subscriptions#index
 
Rails 4 generates :
 
subscriptions DELETE /subscriptions/destroy(.:format) subscriptions#destroy
edit_subscriptions GET /subscriptions/edit(.:format) subscriptions#edit
PUT /subscriptions/update(.:format) subscriptions#update
GET /subscriptions(.:format) subscriptions#index
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.