What about conf.columns[:xxx].clear_link

On May 14, 8:24 am, "[email protected]"
<[email protected]> wrote:
> Yes,
>
> I understand the use of abc_column(record) methods in the helper.
>
> In fact I use them frequently to transform plain-strings into <a>-
> elements.
>
> But now... I want to do the opposite.
>
> I want to change an <a>-element (of a foreign-key) into a plain
> string.
>
> -b
>
> Kenny Ortmann wrote:
> > you don't want to override the foreign-key
>
> > in your controllers helper do
>
> > def dept_column(record)
> >   # display whatever you want here
> >   record.dept.name
> > end
>
> > On Wed, May 13, 2009 at 6:30 PM, [email protected] <
> > [email protected]> wrote:
>
> > > People,
>
> > > Suppose we have a list of employees and each employee has a dept.
>
> > > And by default each dept appears as a link-element.
>
> > > I dont want this; I want dept to just appear as a simple string.
>
> > > It's simple to override the string of the link but I cannot figure out
> > > how to override the link itself.
>
> > > How do I override a foreign-key in the list view?
>
> > > -b
--~--~---------~--~----~------------~-------~--~----~
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