Hello Alfredo,
Could you please provide where and how the current_user is being defined. Are you using an gem for registration/authentication or this is manually defined code?
Also please share the content of controller which contains the action 'home'(for home_path) ?
Well, my guess is that either devise(https://github.com/plataformatec/devise/) or sorcery(https://github.com/NoamB/sorcery/) is being used. If this is the case, it is recommended to use following methods provided by these gems.
1. devise - :authenticate_user! - https://github.com/plataformatec/devise#controller-filters-and-helpers
2. sorcery - :require_login - https://github.com/NoamB/sorcery#api-summary
Thanks,--
You received this message because you are subscribed to a topic in the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rubyonrails-talk/ZIASaUTOaMg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLspKRNEVWPQmCZpKg-rbO_BeMWwvCmecLtg-tvLGfBL%2BQ%40mail.gmail.com.