Hi! How configure devise for default page is sign_in page?
My code:
in routes.rb
devise_for :users do
get "/", to: "devise/sessions#new"
end
root to: 'devise/sessions#new'
When I acess localhost:3000, I have show the sign_in page, but show this error:
Could not find devise mapping for path "/". This may happen for two reasons: 1) You forgot to wrap your route inside the scope block. For example: devise_scope :user do get "/some/route" => "some_devise_controller" end 2) You are testing a Devise controller bypassing the router. If so, you can explicitly tell Devise which mapping to use: @request.env["devise.mapping"] = Devise.mappings[:user]
I have model user.rb and views generates. Whats make? Thanks!