Displaying 1 result from an estimated 1 matches for "user_sreg10record_url".
2007 Dec 28
1
Nested resources form_for problem
...ied
<% form_for( [:user, @sreg10record] ) do |f| %>
as intended for namespaced resources, however that causes the ID of
the record to be used in the URL, which then causes the controller to
fail when retrieving @user. Experiments with url_for (which appears to
be used by form_for anyway) or user_sreg10record_url(@user) failed in
more or less entertaining ways too. So, how do I make form_for
generate a valid path like "/users/<user_id>/sreg10record"?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on R...