Fabrice
未读,2010年11月12日 07:15:072010/11/12登录即可回复作者
登录即可转发
您无权在此群组中删除帖子
请登录以举报消息
要么此群组的电子邮件地址为匿名状态,要么您得查看成员电子邮件地址权限才能查看原始帖子
收件人 Devise
Hello,
I keep getting the typical "undefined method `authenticate_user!'"
error in my controller.
I'm using it like this:
class ProductController < ApplicationController
before_filter :authenticate_user!, :except => [:list, :show]
Where is this method declared ? Where can I look at ? What makes the
method available in the controller ?
I installed Devise using the following instructions:
gem install devise
rails generate devise:install
rails generate devise product
The versions are Rails 3.0.1 and Devise 1.1.3.
Thank you,
Fabrice