Devise: NoMethod Error & user_signed_in

前端 未结 4 741
陌清茗
陌清茗 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 16:12

    What is the name of the model you generated Devise for?

    If you called it something else instead of User, you might want to check out http://groups.google.com/group/plataformatec-devise/msg/67f1eb5a571b6136

提交回复
热议问题