On Jueves, 13 de Mayo de 2010 17:09:44 Iñaki Baz Castillo escribió:
> 2010/5/13 Iñaki Baz Castillo <[email protected]>:
> > This last solution fails as I think it's trying to use @record which
> > is empty in this case (I'm not handling a member in the controller):
>
> But I can fix it by maunally setting @record in the action methd :)
>
> However it's not perfect yet. Using both render solutions:
>
> - If I set :position => false in the action_link then the row is
> correctly updated, but I don't see the flash message.
>
> Is there something I could do to show the flash and correctly display
> the new content of the row at the same time?
> If not, it coudl be enough for me by using :position => false (I see
> no flash notification but the row content is updated, so it's ok).

In this case you can't use update_row view, you have to use a custom view 
here, to refresh the row and show the flash messages:

#app/views/controller/empty.js.rjs:
page.call 'ActiveScaffold.update_row', element_row_id(:action => 'list', :id => 
@record.id), render(:partial => 'list_record', :locals => {:record => 
@record})
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