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.

- If I set  :position => :replace, then the flash is shown but I see
the following ugly content in replacing the row:
---------------------------------------------------
\n \n\n \n \n 111\n \n\n \n     \n -\n \n\n \n  \n -\n \n\n \n  \n -\n \n\n     
\n \n \n \"loading\n \n         \n Vaciar \n    \n Ver \n       \n Editar \n
\n
\n\n\n\n\n
\n\n"); } catch (e) { alert('RJS error:\n\n' + e.toString());
alert('ActiveScaffold.update_row(\"as_dst_black_lists-list-111-row\",
\"\\n\\n \\n\\n \\n \\n 111\\n \\n\\n \\n       \\n -\\n \\n\\n \\n     \\n
-\\n \\n\\n \\n         \\n -\\n \\n\\n
\\n \\n \\n \\\"loading\\n \\n  \\n Vaciar \\n  \\n Ver \\n     \\n Editar \\n
\\n
\\n\\n\\n\\n\\n
\\n\\n\");'); throw e }
---------------------------------------------------


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

Thanks.

-- 
Iñaki Baz Castillo
<[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