On Lunes, 8 de Febrero de 2010 22:35:29 johan pretorius escribió:
> This should be trivial, but I could not find it in the documentation.
>
> I have a custom link that generates a new password:
>
>     config.action_links.add 'send_user_password',
>
>                             :label => 'Resend Password',
>                             :type => :record,
>                             :action => 'send_password'
>
> How does one close the nested view after the above action has
> completed?
>
> I also do not get flash messages (flash [:notice], etc) to display
> when using ActiveScaffold, is that handled differently than within a
> normal Rails app?
>
> Any pointers will be appreciated, thanks!
>
> Johan

If you don't want to show an html response, add :position => false to your 
action link. And then you can use a rjs response to render flash messages in 
active_scaffold_messages_id, as other AS actions:
page.replace_html active_scaffold_messages_id, :partial => 'messages'


-- 
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 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