I believe you are reaching slightly beyond the functionality of active
scaffold here.  If you were to display a link like the other relationships
you are insinuating that
application_instance belongs to client.

If it were a link and you could click on it, then what would you want the
functionality to be?

On Wed, May 13, 2009 at 10:33 AM, fattymelt <[email protected]> wrote:

>
> On May 12, 4:09 am, "Sergio Cambra .:: entreCables S.L. ::."
> <[email protected]> wrote:
> > El Friday 08 May 2009 23:58:23 fattymelt escribió:> I see no one ever
> responded to this ->
> > >http://groups.google.com/group/activescaffold/msg/6745982271cda82a
> >
> > > But I have the exact same issue. As the OP says, it must be a common
> > > problem, so I think I am missing some obvious solution. Thanks.
> >
> > Use a field override and call to_label.
>
> So, I did this, but all I get is the String. I, and the OP, were
> hoping to get a link, just like you get with "single layer"
> associations.
>
> Just to be clear, if I have:
>
> class ApplicationInstance < ActiveRecord::Base
>        belongs_to :deployment
> end
>
> class Deployment < ActiveRecord::Base
>        belongs_to :client
> end
>
> class Client < ActiveRecord::Base
> end
>
> When I am using "active_scaffold :application_instance" I can easily
> include the :deployment column to display and link to
> ApplicationInstance.Deployment, but I want to be able to add a :client
> column that displays and links to
> ApplicationInstance.Deployment.Client.  Your solution did allow me to
> display ApplicationInstance.Deployment.Client, but I would like to
> have it be a link.
>
> thanks,
> seth
>
> >
>

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