Devise: NoMethod Error & user_signed_in

前端 未结 4 756
陌清茗
陌清茗 2020-12-18 15:25

I\'m trying to use user_signed_in? to add a login area to my rails 3 application using devise 1.1.3 and I get a NoMethodErrorin Rules#index

<% if user_sig         


        
4条回答
  •  被撕碎了的回忆
    2020-12-18 15:56

    You seem to be missing the call to devise :database_authenticatable in your User model.

    Also, a good way to get started with devise is to look at the excellent RailsCasts by Ryan Bates : Introducing Devise.

提交回复
热议问题