[Rails] Re: Can't destroy record
[SOLVED] sorry, i forgot that you do actually need some kind of js
framework. After removing prototype i didn't replace it with jQuery,
but now that i have the destroy action works fine.
thanks.
On Aug 6, 11:42 am, Conrad Taylor <conra...@gmail.com> wrote:
> On Sat, Aug 6, 2011 at 2:21 AM, depassion <kevin.b...@gmail.com> wrote:
> > so when attempting to destroy a record i get this in the server log
> > output:
>
> > AREL (0.4ms) DELETE FROM "items" WHERE "items"."id" = 39
> > Started GET "/items/20" for 127.0.0.1 at 2011-08-06 10:59:27 +0200
> > AbstractController::ActionNotFound (The action 'show' could not be
> > found for ItemsController):
>
> > but a normal destroy should look like this:
>
> > Started DELETE "/transactions/3" for 127.0.0.1 at 2011-08-06 11:06:03
> > +0200
> > Processing by TransactionsController#destroy as HTML
> > Parameters: {"authenticity_token"=>"FNi4GDXZGn3yJNXZanNZ3J/
> > vggiMeR7zb/hpmf66s3U=", "id"=>"3"}
> > Transaction Load (0.1ms) SELECT "transactions".* FROM
> > "transactions" WHERE "transactions"."id" = ? LIMIT 1 [["id", "3"]]
> > SQL (0.4ms) DELETE FROM "transactions" WHERE "transactions"."id"
> > = ? [["id", 3]]
> > Redirected tohttp://localhost:3000/transactions
> > Completed 302 Found in 14ms
>
> Kevin, please post the actual Ruby code associated with the above queries.
>
> Thanks,
>
> -Conrad> --
> > 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 rubyonrails-talk@googlegroups.com.
> > To unsubscribe from this group, send email to
> > rubyonrails-talk+unsubscribe@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/rubyonrails-talk?hl=en.
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home