#309 ✓resolved
Kai-Michael Prüß

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

    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 Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Pages