Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Override controller actions and routes #61
I've overriden InvitationsController:
class InvitationsController < Devise::InvitationsController
override new and create
"new" action works fine, but I cannot access "create" action because of routing.
--- --- My routes: --- ---
as :user do
match "users/invitation/new" => "invitations#new", :via => :get
match "users/invitation" => "invitations#create", :via => :post
--- --- $rake routes shows: --- ---
However POST "/users/invitation" still redirects me to Devise::InvitationsController#update .
How to correctly override this route to my Create action?