On Martes, 5 de Octubre de 2010 17:26:57 MikeBlyth escribió:
> I want a list of contacts to display without the contact name being
> linked (clickable) even though it's related in Rails. I've started by
> trying to use a field override, even though I have the feeling based
> on the documentation that it may still add the link.
>
> I cannot get the field override to work at all, however. The model is
> Contact and the controller is ContactsController. The helper I'm
> trying is:
>
>     module ContactsHelper
>       def contacts_addresses_column(record)
>         "Name #{record.email_1}"
>       end
>     end
>

If you want to override contacts column in other model and controller, named 
User for example, you must define contacts_column method in UsersHelper. I 
think your problem is to guess what name method and helper module to use, but 
I can't help you more because I don't know the parent model.

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