Erwin
2010-Aug-12 08:18 UTC
[Rails 3] Routing Error ... but the route is open ... (not the 66 !)
I have in my routes.rb (I am using Devise authentification ...) devise_for :users, :singular => :user, :path => :user as :user do get "user/changeEmail", :to => "user/ credentials#change_email", :as => :user_changeEmail post "user/updateEmail", :to => "user/ credentials#update_email", :as => :user_updateEmail end running rake routes I can see : ... user_changePassword GET /user/changePassword {:controller=>"user/credentials", :action=>"change_password"} user_updatePassword POST /user/updatePassword {:controller=>"user/credentials", :action=>"update_password"} ... user_changePassword_path display correctly the form = form_for @user, :as => :user, :url => user_updatePassword_path, :html => {:method => :put} do |f| .. and the submitting the form should send data to :url => user_updatePassword_path but there is a routing error in the console ---- Started POST "/user/updatePassword?locale=en" for 127.0.0.1 at 2010-08-12 10:00:59 +0200 ActionController::RoutingError (No route matches "/user/ updatePassword"): why no route matches it as it''s seems to be there in rake routes list ? thanks fyh -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.