3
레일즈 레일즈 2.3.8과 Devise 1.0.8이 있습니다. 나는 installation instructions을 따랐지만, 처음으로 액세스/사용자/sign_in에 후 수정 routes.rb을하려고 할 때 내가 다시로드 할 때, 나는 내가 할Ruby on Rails를위한 Devise, 설치 후 라우팅 문제들
Internal Server Error
undefined method `[]' for :users:Symbol
을 얻을
Routing Error
No route matches "https://stackoverflow.com/users/sign_up" with {:method=>:get}
map.devise_for :users
을 두는 경우 다른 map.
위보다 예를 들어/아티스트 또는/노래에 액세스하려고 할 때 동일한 종류의 라우팅 오류가 발생합니다.
내가 누락 된 항목이 있습니까?
업데이트 : 여기 당신은 알고
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)
'레이크 루트'를 실행하면 어떤 결과가 발생합니까? –
@ 존 그것은 나에게 좋아 보인다. 내 게시물을 출력으로 업데이트했습니다. – Johan
저는 같은 문제가있어 해결책을 찾지 못했습니다. 이것으로, 나는 단지 고안을 사용할 수 없다! 저는 devise 1.0.8, rails 2.3.10, ruby 1.8.7을 사용하고 있습니다. – brunosprak