Q:

Rails 4, redirect to "pages/congrats"

I have a problem after registration a new user. I need to redirect user to page with congrats that he was registered. Adress is: /pages/bravo . But redirect does'nt work.
    def create
  @user = User.new(user_params)
  if @user.save
    redirect_to "pages/bravo"
  else
    render "new"
end
end

It will returns the same page of registration without a redirecting.
Thank you.

A:

Assuming bravo is an action in the controller
redirect_to :controller => 'pages', :action => 'bravo'

