what's content of params[:id], why not use favorite_id;
2010/4/22 Lee Smith :
> I've got a model, Favorite, that I'm trying to remove from the
> database by calling the destroy method on it. What's noteworthy about
> this model is that it doesn't have an id column. The unique index on
> the Favo
I've got a model, Favorite, that I'm trying to remove from the
database by calling the destroy method on it. What's noteworthy about
this model is that it doesn't have an id column. The unique index on
the Favorites table is a both the user_id and the article_id. A
favorite belongs to a user and
2 matches
Mail list logo