title: devise confirmable routing - rails 4
body: <p>i am new to rails and any advise and help will be much appreciated.</p>
  
  <p>I am currently using devise confirmable</p>
  
  <p>When a user signs up for the first time they get:</p>
  
  <ul>
  <li>Re-directed to the application root at localhost:3000</li>
  <li>Flash notice saying "A message with a confirmation link has been sent to your email address. Please open the link to activate your account."</li>
  </ul>
  
  <p>So far so good.</p>
  
  <blockquote>
    <p>I am trying to redirect the user to a different page when they signup
    but unsure how - any advise would be much appreciated</p>
  </blockquote>
  
  <p>application_controller.rb</p>
  
  <pre><code>class ApplicationController &lt; ActionController::Base
    # Prevent CSRF attacks by raising an exception.
    # For APIs, you may want to use :null_session instead.
    protect_from_forgery with: :exception
    before_filter :configure_permitted_parameters, if: :devise_controller?
  
    protected
    def after_sign_in_path_for(resources)
      if userr_signed_in?
        dashboard_path
      elsif usera_signed_in?
        admin_path
      else
        dashboardj_path
      end
    end
  
    def after_sign_out_path_for(resources)
      new_feedback_path
    end
  
    def configure_permitted_parameters
      devise_parameter_sanitizer.for(:sign_in) { |u| u.permit(:email) }
      devise_parameter_sanitizer.for(:sign_up) { |u| u.permit(:category_businesstype_id, :firstname, :lastname, :companyname, :email, :password, :category_role_id, :staff, :number, :hear, :city, :category_qualification_id, :language, :category_careerlevel_id, :desiredjob, :category_distance_id, :category_cvpreference_id, :category_joboption_id, :preferedlocation, :category_notice_id, :category_country_id, :category_positiontype_id ) }
    end
  end
  </code></pre>