syntax for delete

Mahendra wrote:


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...

In general it's always a good idea to say what the error is, but normally you'd use destroy to achieve this:
@project.destroy ( delete is actually a class method that should be given the id or ids of the records you want to delete (