Nevermind Sergio---
I just realized that if I deleted the param eid (as it is "") it works..
<% params.delete(:eid) if nested? %>
Hope all is well on your side of the pond!
-Mark
end
'as_' + id_from_controller(controller)
end
On Wednesday, April 6, 2016 at 11:52:04 AM UTC-4, loveand light wrote:
>
> Is there a way to access the eid that is used in embeded scaffolds when
> calling element_row_id from a custom action?
>
> The id of the row looks like:
>
> as_a3b1686df77ade6385469f0ac5ae9f83-list-9-row
>
> But I am creating a custom update action and I don't know how to update
> this row because I get
>
> [ element_row_id(:action => 'update', :id => @record.id)
> => "as_admin__kg_aliases2s-update-15-row"
>
> I am using this to try to update row but I am guessing my custom
> update/create action doesn't give element_row_id the right id....
>
>
> ActiveScaffold.update_row('<%=element_row_id(:action => 'list', :id => @
> record.id)%>','<%=escape_javascript(render(:partial => 'list_record',
> :locals => {:record => @record}))%>');
>
>
> Thanks in advance.
> Mark
>
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails Gem" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/activescaffold.
For more options, visit https://groups.google.com/d/optout.