精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
---|---|
作者 | 正文 |
发表时间:2008-02-02
Restful Authentication Generator This is a basic restful authentication generator for rails, taken To use: ./script/generate authenticated user sessions \ The first parameter specifies the model that gets created in signup The second parameter specifies the sessions controller name. This is The third parameter (--include-activation) generates the code for a The fourth (--stateful) builds in support for acts_as_state_machine http://www.vaporbase.com/postings/stateful_authentication You can pass --skip-migration to skip the user migration. If you're using acts_as_state_machine, define your users resource like this: map.resources :users, :member => { :suspend => :put, Also, add an observer to config/environment.rb if you chose the config.active_record.observers = :user_observer # or whatever you Security Alert I introduced a change to the model controller that's been tripping 声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
返回顶楼 | |
浏览 2106 次