This is the expected behavior, right?  There is no method named 
edit_user_password, so it's raising an error.

Why is the route to this resource 
"/trainingdividend/rest/myProfile/editPassword" ?  And not something like 
"/passwords/edit" or something else that is simpler and more Rails-like?  Is 
this a legacy application you're dealing with?  Just trying to understand.

Bryan


On May 30, 2011, at 1:29 PM, egervari wrote:

> Here's another one:
> 
> ActionView::Template::Error (undefined local variable or method
> `edit_user_password' for #<#<Class:0x00000004c829f0>:
> 0x00000004c70b60>):
>    51:
>    52:       <tr>
>    53:         <td>Password:</td>
>    54:         <td>[HIDDEN] (<%= link_to "Reset Password",
> edit_user_password %>)
>    55:       </tr>
>    56:
>    57:       <tr class="subHeader">
>  app/views/my/profile/show.html.erb:54:in
> `_app_views_my_profile_show_html_erb___3947683302502441865_40045180'
> 
> Rendered /home/egervari/.rvm/gems/ruby-1.9.2-p180@railspre/gems/
> actionpack-3.1.0.rc1/lib/action_dispatch/middleware/templates/rescues/
> _trace.erb (1.0ms)
> Rendered /home/egervari/.rvm/gems/ruby-1.9.2-p180@railspre/gems/
> actionpack-3.1.0.rc1/lib/action_dispatch/middleware/templates/rescues/
> _request_and_response.erb (0.9ms)
> Rendered /home/egervari/.rvm/gems/ruby-1.9.2-p180@railspre/gems/
> actionpack-3.1.0.rc1/lib/action_dispatch/middleware/templates/rescues/
> template_error.erb within rescues/layout (5.3ms)
> 
> 
> Started GET "/trainingdividend/rest/myProfile/editPassword/" for
> 127.0.0.1 at 2011-05-30 16:29:06 -0400
> 
> ActionController::RoutingError (No route matches [GET] "/
> trainingdividend/rest/myProfile/editPassword"):
> 
> 
> Rendered /home/egervari/.rvm/gems/ruby-1.9.2-p180@railspre/gems/
> actionpack-3.1.0.rc1/lib/action_dispatch/middleware/templates/rescues/
> routing_error.erb within rescues/layout (0.6ms)
> 
> -- 
> 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 [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/rubyonrails-talk?hl=en.
> 

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to