In your controller you have to find your model.

Inside of the destroy method you need to find the record.

If your model is Author
In your Authors controller you would do
def destroy
  author = Author.find(params[:I'd])
  author.update_attribures(:deleted => true)
end

This finds the author by the url, and then updates the authors deleted 
attribute to be true.  

I would suggest learning at least some of the practices of ruby on rails before 
you try to use plugins such as active_scaffold.
Sent from my Verizon Wireless BlackBerry

-----Original Message-----
From: JannaB <[email protected]>

Date: Wed, 6 May 2009 13:00:15 
To: ActiveScaffold : Ruby on Rails plugin<[email protected]>
Subject: Re: Change behavior of "Delete"



This is my first project. I have a column in my table, called
'deleted.' This becomes an instance variable accesible in the model
then as @deleted, no? -Janna


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to