On Mon, May 2, 2011 at 7:03 AM, SonicMisora <[email protected]> wrote:
> def remove_from_cart > @cart = find_cart > remove_item = params[:id] > redirect_to_index > end > unfortunately i found that remove_item isn't my CardItem class but a > String. Of course it's a String - that's what "query*string*" parameters are :-) - remove_item = params[:id] + remove_item = CardItem.find(params[:id]) HTH, -- Hassan Schroeder ------------------------ [email protected] twitter: @hassan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

