ruby on rails - Devise broke by itself? /users/edit goes to 404 -
when clicking on user profile link edit_user_registration_path
(http://localhost:3000/users/edit
) used work yesterday. today goes 404 error looks this.
routing error no route matches {:controller=>"devise/ideas"} try running rake routes more information on available routes.
i checked rake routes
, get
like_idea /ideas/:id/like(.:format) ideas#like comment_idea post /ideas/:id/comment(.:format) ideas#comment ideas /ideas(.:format) ideas#index post /ideas(.:format) ideas#create new_idea /ideas/new(.:format) ideas#new edit_idea /ideas/:id/edit(.:format) ideas#edit idea /ideas/:id(.:format) ideas#show put /ideas/:id(.:format) ideas#update delete /ideas/:id(.:format) ideas#destroy new_user_session /users/sign_in(.:format) devise/sessions#new user_session post /users/sign_in(.:format) devise/sessions#create destroy_user_session /users/sign_out(.:format) devise/sessions#destroy user_password post /users/password(.:format) devise/passwords#create new_user_password /users/password/new(.:format) devise/passwords#new edit_user_password /users/password/edit(.:format) devise/passwords#edit put /users/password(.:format) devise/passwords#update cancel_user_registration /users/cancel(.:format) devise/registrations#cancel user_registration post /users(.:format) devise/registrations#create new_user_registration /users/sign_up(.:format) devise/registrations#new edit_user_registration /users/edit(.:format) devise/registrations#edit put /users(.:format) devise/registrations#update delete /users(.:format) devise/registrations#destroy root / home#index
which looks right 1 can see correct route edit_user_registration_path
i'm new ruby appreciated.
it's not edit_user_registration_path problem.
if @ error message, rails looking ideas_controller in devise folder (ie "devise/ideas"). if don't have controller there, means somewhere calling incorrect path.
Comments
Post a Comment