On Martes, 11 de Octubre de 2011 22:30:14 dave smylie escribió:
> I need to update the contents of  scaffold without reloading the entire
> page.
> 
> I can create an action link easily enough to add the action link required:
> 
>   config.action_links.add('refresh', :label => 'Refresh', :inline => true,
> 
> :position => false)
> 
> But I'm not sure how to re-render the scaffold.
> 
> I believe the partial I need to render is the 'list' partial, but this
> requires the @page and @records instance variables be populated.
> I'm sure how I should be populating these?
> 
> Alternatively, is there another, easier way to refresh a scaffold?
> 
> Cheers
> Dave Smylie

Try adding :action => 'index' and it will refresh it

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