I understand starting somewhere but you should try to understand what the 
framework is doing before you use plugins that do the work for you.
Sent from my Verizon Wireless BlackBerry

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

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



Thank you. This looks familiar with the studying I have done (I have
to start somewhere, no?). It is late in the day and my mind is mush --
I should have known this. Thank you for showing me the way. -Janna

On May 6, 4:06 pm, [email protected] wrote:
> 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