Now you should use conf.nested.add_link :auditlogs becuase it requires only
one parameter (the association column). If you want to change label, use:
conf.nested.add_link :auditlogs, :label => 'picViewLog'
IIRC no specific class is set in action link, but you can set it with
:html_options => {:class => 'picViewLog'}
El Lunes, 6 de enero de 2014 09:31:14 coalex escribió:
> Hi,
> I'm updating an old application where all the nested links are displayed as
> icons. I'm having trouble figuring out a good way to do this in the newer
> version of AS.
>
> In the old controller this line displays a nested link to the record's log
> data:
>
> conf.nested.add_link("picViewLog",[:auditlogs])
>
> ...and in the old stylesheet:
> (/public/stylesheets/local_styles.css)
>
> .active-scaffold td.actions a.picViewLog {
> display:block;
> width: 16px;
> height: 16px;
> background: url("../../../images/log.png") 0 0 no-repeat;
> background-position: center center;
> }
>
>
> Is there an easy way to do this newer application environment?
> Rails 3.2.16
> ruby 2.0.0p195
> active_scaffold (3.3.3)
>
> Thanks any advise.
> coalex
--
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 http://groups.google.com/group/activescaffold.
For more options, visit https://groups.google.com/groups/opt_out.