1) Check the URL that are in the links in your browser. The params[:id] 
will be set to uniquely identify each record.

2) This is not an AS issue. In your revert method you can call whatever 
method in the model to destroy the data that you want to destroy. You 
might want to check the ActiveRecord documentation for details.

/S

On 11/20/2009 1:43 PM, RVince wrote:
> I am trying to put an action_link for each row which would take the
> data from that row, repackage it up and put it into a different table
> (with a different format), then, delete this row from the current
> table. :
>
> config.action_links.add :revert, :label =>  'Revert', :type =>  :record
>
> Subsequently in my controller I create:
>
> def revert
>
> end
>
> And in this method, the questions arise:
> 1. How do I access the record of the row that this action link,
> "Revert" has been clicked on so I can access its data -and-
> 2. How do I delete this row within AS?
>
> Thanks, R. Vince
>
> --
>
> 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=.
>
>
>    

--

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


Reply via email to