bug in nested resource and to_param
Reported by Tammer Saleh | March 4th, 2008 @ 08:40 AM
If you are using to_param in your models, should_be_restful with nested resources won’t work as expected due to the fact it calls for the id.
{ :"#{parent_name}_id" => parent.id }.merge(make_parent_params(resource, parent, parent_names))
Comments and changes to this ticket
-
Tammer Saleh March 10th, 2008 @ 10:32 AM
- → State changed from new to open
Thanks Bryan,
I've committed this fix to trunk.
Cheers,
Tammer
-
Tammer Saleh June 26th, 2008 @ 03:27 PM
- → State changed from open to committed
- → Tag changed from to should_be_restful
- → Assigned user cleared.
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
