Thanks Soren,

The reason I want to know about the delete is because I want to keep
it as AS-like as possible. Perhaps it;s best to just override the AS
delete function (and if I do that, I would do the business I want to
do, then call super.delete on it) -R. Vince

On Nov 20, 7:27 pm, Soren Christensen <[email protected]> wrote:
> 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 
> > athttp://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