Using a device with Rails 3 beta

I am currently trying to use Devise 1.1.pre3 as authentication in my upcoming project, but I canโ€™t get it to work correctly.

I did everything that is stated in the documentation installed by the boss and the correct version of Devise, launched the installation and used the generator to create the model. But when I try to access the registration form (localhost: 3000 / users / sign_up), all I get is

No route matches "/users/sign_up"

But when I run rake routing, I get the following:

...
GET  /users/sign_up(.:format) {:controller=>"devise/registrations", :action=>"new"}
...

I do not have files matching this controller.

Are there any steps that I skipped (installed, updated routing, etc. and the model created)

+3
2

, sign_in /users/sign _in.

, : path_names = > {: sign_in = > "login",: sign_out = > "logout" }

/users/login /users/logout.

+5

.. .

devise_scope :user do
  get "register"  => "devise/registrations#new" 
  get "login"  => "devise/sessions#new"    
  get "logout" => "devise/sessions#destroy"
end 
+4

Source: https://habr.com/ru/post/1734725/


All Articles