Hi guys,
I have a cases which I needed to create a nested link within the show
view,  which means clicking on the link inside the expanded show view
will nested a particular model data.

I have tried with column.setlink, however it only applies to listing,
which particularly I need it to be within the show page. I try for
field_overrides either, but it just refresh as page rather than
display as inline.

  def comments_column(record)
        @link=
ActiveScaffold::DataStructures::ActionLink.new(pluralize(record.comments.count,'comment'))
        @link.action = 'nested'
        @link.inline = 'true'
        @link.type = 'record'
        @link.position = :after
        @link.inline = true
        hash = {:associations => 'comments'}
        @link.parameters = hash
        url_options = params_for(:action => nil, :eid=>eid,:id =>
record.id,:parent_column=>'comments',:parent_controller=>'admin
comments',:parent_model=>'Post')
        render_action_link(@link,url_options)
end

thanks for any advises !
--~--~---------~--~----~------------~-------~--~----~
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