views:

53

answers:

1

I am using Devise for authenticating a Rails application. I am now able to successfully route /users/sign_in and /users/sign_out to /sign_in and /sign_out via this code in routes.rb:

devise_for :user, :as => ''

How do I map /registration/sign_up to /sign_up?

So that sign_in, sign_out, and sign_up all have the same pattern.

Note that I am using Devise only for users. No admins.

+3  A: 

You need do

devise_scope :user do
  get "/sign_in" => "devise/registrations#new"
end

it's explain : http://github.com/plataformatec/devise/wiki/How-To:-Change-the-default-sign_in-and-sign_out-routes

shingara