Forum: Ruby on Rails syntax for delete

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
0db277fb2005de6dd41368ca62dc25c6?d=identicon&s=25 Mahendra (Guest)
on 2007-07-05 14:43

I am saving my data using like this:

@project =[:project])

How can i delete same.
 I am using
But it is giving me error.

Plz. help...
58c6efb8466b9f85155fe6aa9fc37fce?d=identicon&s=25 Chris Taggart (christ)
on 2007-07-05 21:32
(Received via mailing list)
Mahendra wrote:
> But it is giving me error.
> Plz. help...
In general it's always a good idea to say what the error is, but
normally you'd use destroy to achieve this:
delete is actually a class method that should be given the id or ids of
the records you want to delete

Autopendium :: Stuff about old cars
This topic is locked and can not be replied to.