title: Adding a custom action to Devise Registrations..Unknown Action Error
body: <p>After Googling everywhere about how I can fix this I decided to post a question. I'm trying to add a custom action "create_pro" to the Devise Registrations controller so I can create a user with additional fields (A pro user). This form is on the same page as the devise create action for a user.</p>
  
  <p>I keep getting the following error after submitting the form:</p>
  
  <blockquote>
    <p>Unknown action</p>
    
    <p>The action 'create_pro' could not be found for
    Devise::RegistrationsController</p>
  </blockquote>
  
  <p><em>How can I fix this?</em></p>
  
  <p><strong>Routes</strong></p>
  
  <pre><code>  devise_for :users,:controllers =&gt; { :registrations =&gt; "registrations" }
    devise_scope :user do
      post "gopro", :to =&gt; "devise/registrations#create_pro"
    end
  </code></pre>
  
  <p><strong>Registrations Controller</strong></p>
  
  <pre><code>class RegistrationsController &lt; Devise::RegistrationsController
    before_filter :authenticate_user!, :only =&gt; :token
  
    def new
      super
    end
  
    def create
      @user = User.new(params[:user])
      if @user.save
        sign_in @user
        flash[:notice] = "Welcome to Banking Analytics."
        redirect_to '/mybank'
      else
        render :action =&gt; :new
      end
    end
  
    def create_pro
      @user = User.new(params[:user])
      if @user.save
        sign_in @user
        flash[:notice] = "Welcome to Banking Analytics."
        redirect_to '/mybank'
      else
        render :action =&gt; :new
      end
    end
  end
  </code></pre>
  
  <p><strong>View</strong></p>
  
  <pre><code>&lt;div class="signup_form_basic"&gt;
  &lt;%= simple_form_for @user, :url =&gt; url_for(:controller =&gt; 'registrations', :action =&gt; 'create_pro') do |f| %&gt;
    &lt;%= f.error_notification %&gt;
      &lt;%= f.input :email, :required =&gt; true, :autofocus =&gt; true, :label =&gt; 'Username ( Your Email )', :placeholder =&gt; 'Email Address' %&gt;
      &lt;%= f.input :password, :required =&gt; true, :autofocus =&gt; true, :label =&gt; 'Password', :placeholder =&gt; 'Password' %&gt;
      &lt;%= f.input :password_confirmation, :required =&gt; true, :autofocus =&gt; true, :label =&gt; 'Confirm Password', :placeholder =&gt; 'Password Confirmation' %&gt;
      &lt;%= f.button :submit, "Sign Up  &gt;&gt;", class: 'btn btn-inverse' %&gt;
  &lt;% end %&gt;
  &lt;/div&gt;
  </code></pre>