Rapidfire and Devise and Rake Routes

This comes from Rapidfire and Devise . I installed Devise in my application, and I can log in, but then I installed rapidfireGem, and I can still log in with it, but when I get to localhost::3000/rapidfire, I get a message that the development paths are not recognized. Can anyone help?

For application_controllerI have not included the function current_userthat they say here, and set the function can_administerto return true, for example

#def current_user
#    @current_user ||= User.find(session[:user_id])
# end

def can_administer?
 true
end

rake Routes show it below

Verb Prefix

new_user_session Get /users/sign_in      

user_session

destroy_user_session

user_password

new_user_password

edit_user_password

cancel_user_registration

user_registration

new_user_registration

edit_user_registration

user_confirmation

new_user_confirmation

rapidfire

root Get /

Routes Rapidfire::Engine:
results_question_group
question_grou_quetions...
+4
source share
2 answers

UsersController.

-

resources :users

config/routes.rb . user, .

+1

, Rapidfire , . Rapidfire .

+1

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


All Articles