I have an issue with nested action links in rails 3.1.  The link
renders the results fine.  The issue i have is when closing the result
the main table index is inserted in place of the closed results.  For
instance if I have a scaffold for users with a nested link for posts
when closing the posts index /users is inserted in it's place.  The
issue is in active_scaffold / frontends / default / views /
_list_inline_adapter.html.erb.

The link for the close is created by
<%= link_to(as_(:close), '', :class => 'inline-adapter-close
as_cancel', :remote => true, :title => as_(:close), 'data-refresh' =>
(action_name == 'index' ? true : false)) -%>

I'm guessing action_name is 'index' for the nested links.

This issue doesn't happen with action links I create
config.action_links.add  :type => :member, :position => :after.
Related I've noticed that the row with the link is no longer updated
on close.  I can submit a code fix, but I'm a little confused on what
the desired results are.

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