Skip to content

Instantly share code, notes, and snippets.

@dlynam
Last active December 19, 2015 03:48
Show Gist options
  • Save dlynam/5892273 to your computer and use it in GitHub Desktop.
Save dlynam/5892273 to your computer and use it in GitHub Desktop.
#route
resources :users do
get :activate, on: :member
end
#view
<%= form_for @user, :url => activate_user_path(@user) do |f| %>
....
<% end %>
#for some reason this occurs in the console console and it calls the update action with activate as the id
Started PUT "/users//activate"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment