thx~ i got trouble to get row data in the custom action when i try to use find_page().items, it will return whole datas in this form, but i just need one specific row data. how should i appoarch it or where i can get the tutorial or api in custom actions of ActiveScaffold?
On May 20, 11:29 pm, Soren Christensen <[email protected]> wrote: > To add a link to some function for each user do: > > config.action_links.add 'respw', > :label => "Reset Password", > :type => :record, > :inline => false, > :security_method => :respw_authorized? > > You can then use the secutiy_method to control if this is enabled for > this particular user - if not it will be inactive and grey > > def respw_authorized? > (current_user.role == 'admin') > end > > Check the doc's re action_link > > /S > > simon wrote: > > for example , i got a model User for login/logout the system, and use > > user_controlle and active_scaffold to render the manuplation. then i > > want to add a action , "change_password", but how can i customly add > > this link for every row/user ? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
