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