Ruby on Rails Tuesday, June 28, 2011

Hmm, maybe I'm confused.  Even if I used your solution verbatim I think I'm still stuck with the problem as update.html.erb would not be used (edit.html.erb would).

To recap, what you're suggesting is essentially what I'm doing -- except instead of hard-coding "people/update" I'm using a helper method that uses controller.controller_name + "/" + controller.action_name to generate that part of the path.

So far so good, but when I use "render :edit" in the "update" action, I've got my problem (I'm requesting the wrong action's assets).

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/2LGOmrUizjYJ.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment