質問

I set up devise on a local machine for my user authentication and it works fine there. But when I log into the server and merge the local changes there it throws the error:

devise_for in routes.rb not found

After executing the install command rails g device:install on the server it now states:

undefined method 'user_signed_in?'

Does anybody know how I make devise work after the cloning or merging?

役に立ちましたか?

解決

I solved the problem:

I used capistrano for deployment which set up the right production settings. There I had to disable config.i18n.fallbacks = false. Actually I do not know why it works now, but I think it could have to do with cached locale information.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top