title: Devise invitable - How to add a Method to InvitationsController < Devise::InvitationsController
body: <p>I'm using the devise invitable gem: <a href="https://github.com/scambra/devise_invitable" rel="nofollow">https://github.com/scambra/devise_invitable</a></p>
  
  <p>My App also has a controller: invitations_controller.rb, which starts with:</p>
  
  <pre><code>class InvitationsController &lt; Devise::InvitationsController
  </code></pre>
  
  <p>I'm allowing users to register with FB and would like to add a method to this controller:</p>
  
  <pre><code>def fb_create
    Rails.logger.info 'fb_createfb_createfb_createfb_createfb_createfb_createfb_createfb_createfb_create'
  end
  </code></pre>
  
  <p>I tried adding this to my routes.rb file as so:</p>
  
  <pre><code>post  "/users/invitation/fb_create" =&gt; "invitations#fb_create"
  </code></pre>
  
  <p>But that failed. How can I add a route for this method?</p>
  
  <p>Currently my routes has been using this for devise:</p>
  
  <pre><code>  devise_for :users, :controllers =&gt; {:invitations =&gt; "invitations", :sessions =&gt; "sessions", :registrations =&gt; "registrations"}
  </code></pre>
  
  <p>Thanks</p>