我遵循了基本安装(http://railscasts.com/episodes/67-restful-authentication)
这样做:
1.) ruby 脚本/生成经过身份验证的用户会话
2.) ruby 脚本/生成经过身份验证的用户会话和rake db:migrate
3.) 在我包含的文件application_controler.rb上
include AuthenticatedSystem
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
问题是在localhost:3000/上出现了与通常相同的 “欢迎加入您正在使用 Ruby on Rails!”页面。
如何将登录页面显示在localhost:3000上?