On Miércoles, 3 de Junio de 2009 21:17:27 JannaB escribió:
> I know I can write a method for do_destroy in the controller to
> override what happens when the user clicks "delete" in list view. Is
> there a means whereby I can change what the text is, e.g. replace
> 'delete' with 'emai' then, override do_destroy to send an email --
> thereby gaining absolute control over it? Can the text itself for
> 'delete' (or 'show' or 'edit') be overriden? Thanks, Janna B

You can add action links to invoke other actions too.
config.action_links.add :action_name, :label => 'Label', :type => :record
Look at action_links under API: core
http://wiki.github.com/activescaffold/active_scaffold/api-core

> 
-- 
Sergio Cambra .:: entreCables S.L. ::.
Nicolás Guillén 6, locales 2 y 3. 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]


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