Ok.  Disregard this.    I forgot I have an overridden
render_action_link helper in there.   The older version of AS had a
correct link.label, the current one you have to look elsewhere....

Sorry about that.

Upgraded so I could use scopes but there are a lot of little sneaky
changes in there :P




On Sep 2, 4:40 pm, Jeff <[email protected]> wrote:
> I only checked it for non-empty associations since that is a required
> field.
>
> Look at the render_list_column code, the correct value is passed as
> "text".
>
> If column.link is false/nil, text is returned,  otherwise it is never
> referenced or used.
>
> On Sep 2, 12:17 pm, "Sergio Cambra .:: entreCables S.L. ::."
>
>
>
> <[email protected]> wrote:
> > On Jueves, 2 de Septiembre de 2010 17:54:47 Jeff escribió:
>
> > > Using latest/edge version.
>
> > > I have a list view that shows an associated column (:belongs_to).   I
> > > also have an active column override helper for that column.    It does
> > > get called via get_column_value.
>
> > > The render_list_column completely ignores this override (and/or
> > > to_label) when creating a link.  Instead it only shows the generic
> > > model name.
>
> > > If I suppress link generation using  .actions_for_association_links =
> > > []  the column renders as expected.
>
> > That should happen only when there is no associated record. You don't need 
> > to
> > set [] to suppress link generation, you can delete :new action so you will 
> > get
> > show or edit links:
> > .actions_for_association_links.delete :new
>
> > Does it happen for records with non empty association?
>
> > --
> > Sergio Cambra .:: entreCables S.L. ::.
> > Mariana Pineda 23, 50.018 Zaragoza
> > T) 902 021 404 F) 976 52 98 07 E) [email protected]

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