restful_authentication什么也没出现

Bon*_*chi 1 ruby authentication ruby-on-rails ruby-on-rails-plugins

我遵循了基本的安装(http://railscasts.com/episodes/67-restful-authentication)

这样做:

1.)ruby脚本/生成经过身份验证的用户会话

2.)ruby脚本/生成经过身份验证的用户会话 rake db:migrate

3.)在我包含的文件application_controler.rb上

include AuthenticatedSystem
Run Code Online (Sandbox Code Playgroud)

4.)在我包含的文件routes.rb上

 map.signup  '/signup', :controller => 'users',   :action => 'new'
 map.login  '/login',  :controller => 'session', :action => 'new'
 map.logout '/logout', :controller => 'session', :action => 'destroy'
 map.activate '/activate/:activation_code', :controller => 'users', :action => 'activate', :activation_code => nil 
Run Code Online (Sandbox Code Playgroud)

问题是在localhost:3000 /看起来和通常一样 "欢迎你乘坐Ruby on Rails!"页面.

如何将登录页面显示在localhost:3000上

Sri*_*.V. 9

从rails应用程序中删除public/index.html并更改您的routes.rb

map.root:controller =>'session',:action =>'new'