title: [RAILS]: redirect_to special path after sign-up
body: <p>I there, 
  I developp a rails app and I have a problem on displaying a special path after sign-up.
  I have an attribute :status for my user which is filled in in my sign-up form. If this attribute is checked (true), I would like to display payout_method_path , whereas it is false I want to redirect to root_path.
  I have the following error:
  AbstractController::DoubleRenderError in RegistrationsController#create</p>
  
  <p>Here is my code.
  Thks for help...:-)</p>
  
  <p>class RegistrationsController &lt; Devise::RegistrationsController</p>
  
  <pre><code>  def after_sign_up_path_for(resource)
  if current_user.status?
      redirect_to payout_method_path
        flash[:notice] = "Your account is verified before being a seller"
  else
      redirect_to root_path
  end
  </code></pre>
  
  <p>end</p>