Ruby on rails 设计RubyonRails,安装后的路由问题
我有rails 2.3.8和Desive 1.0.8。我遵循了,但在修改routes.rb后首次尝试访问/users/sign_时,我得到Ruby on rails 设计RubyonRails,安装后的路由问题,ruby-on-rails,devise,Ruby On Rails,Devise,我有rails 2.3.8和Desive 1.0.8。我遵循了,但在修改routes.rb后首次尝试访问/users/sign_时,我得到 Internal Server Error undefined method `[]' for :users:Symbol 当我重新加载时,我会 Routing Error No route matches "/users/sign_up" with {:method=>:get} 如果将map.design\u放置在其他map.s之上,则在尝试访
Internal Server Error
undefined method `[]' for :users:Symbol
当我重新加载时,我会
Routing Error
No route matches "/users/sign_up" with {:method=>:get}
如果将map.design\u放置在其他map.
s之上,则在尝试访问例如/artist或/song时,我会遇到同样的路由错误
我错过什么了吗
更新:这里是rake路由的完整输出
new_user_session GET /users/sign_in {:controller=>"sessions", :action=>"new"}
user_session POST /users/sign_in {:controller=>"sessions", :action=>"create"}
destroy_user_session GET /users/sign_out {:controller=>"sessions", :action=>"destroy"}
new_user_password GET /users/password/new(.:format) {:controller=>"passwords", :action=>"new"}
edit_user_password GET /users/password/edit(.:format) {:controller=>"passwords", :action=>"edit"}
user_password PUT /users/password(.:format) {:controller=>"passwords", :action=>"update"}
POST /users/password(.:format) {:controller=>"passwords", :action=>"create"}
new_user_registration GET /users/sign_up(.:format) {:controller=>"registrations", :action=>"new"}
edit_user_registration GET /users/edit(.:format) {:controller=>"registrations", :action=>"edit"}
user_registration PUT /users(.:format) {:controller=>"registrations", :action=>"update"}
DELETE /users(.:format) {:controller=>"registrations", :action=>"destroy"}
POST /users(.:format) {:controller=>"registrations", :action=>"create"}
songs GET /songs(.:format) {:controller=>"songs", :action=>"index"}
POST /songs(.:format) {:controller=>"songs", :action=>"create"}
new_song GET /songs/new(.:format) {:controller=>"songs", :action=>"new"}
edit_song GET /songs/:id/edit(.:format) {:controller=>"songs", :action=>"edit"}
song GET /songs/:id(.:format) {:controller=>"songs", :action=>"show"}
PUT /songs/:id(.:format) {:controller=>"songs", :action=>"update"}
DELETE /songs/:id(.:format) {:controller=>"songs", :action=>"destroy"}
artist_songs GET /artists/:artist_id/songs(.:format) {:controller=>"songs", :action=>"index"}
POST /artists/:artist_id/songs(.:format) {:controller=>"songs", :action=>"create"}
new_artist_song GET /artists/:artist_id/songs/new(.:format) {:controller=>"songs", :action=>"new"}
edit_artist_song GET /artists/:artist_id/songs/:id/edit(.:format) {:controller=>"songs", :action=>"edit"}
artist_song GET /artists/:artist_id/songs/:id(.:format) {:controller=>"songs", :action=>"show"}
PUT /artists/:artist_id/songs/:id(.:format) {:controller=>"songs", :action=>"update"}
DELETE /artists/:artist_id/songs/:id(.:format) {:controller=>"songs", :action=>"destroy"}
artists GET /artists(.:format) {:controller=>"artists", :action=>"index"}
POST /artists(.:format) {:controller=>"artists", :action=>"create"}
new_artist GET /artists/new(.:format) {:controller=>"artists", :action=>"new"}
edit_artist GET /artists/:id/edit(.:format) {:controller=>"artists", :action=>"edit"}
artist GET /artists/:id(.:format) {:controller=>"artists", :action=>"show"}
PUT /artists/:id(.:format) {:controller=>"artists", :action=>"update"}
DELETE /artists/:id(.:format) {:controller=>"artists", :action=>"destroy"}
root / {:controller=>"home", :action=>"index"}
/:controller/:action/:id
/:controller/:action/:id(.:format)
你知道吗?我已经花了10个小时在这上面了。你知道吗
killall server && script/server &
现在我也要自杀了。运行rake routes
,你得到了什么结果?@John我觉得不错。我已经用输出更新了我的帖子。我在这里遇到了同样的问题,没有找到任何解决方案。有了这个,我就不能用Desive了!我使用的是Desive 1.0.8、rails 2.3.10和ruby 1.8.7。