merb-gen resource generates Model.get() calls (without id)
Reported by Kai-Michael Prüß | May 24th, 2008 @ 08:07 PM
In show, edit, update and destroy methods. It should be Model.get(params[:id]) or Model[params[:id]] instead of just Model.get()
Comments and changes to this ticket
-
Sindre Aarsaether May 25th, 2008 @ 05:57 AM
- → State changed from new to resolved
- → Assigned user changed from Sam Smoot to Sindre Aarsaether
This is because no key has been defined on the model. I have now made it so that params[:id] will be default if it did not find any keys. This is, if you run merb-gen resource ...
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 »
