Skip to content

@Keqi /gist:46f8f281ddeef7107c14 secret
Last active

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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.