On Miércoles, 6 de Octubre de 2010 09:31:46 MikeBlyth escribió:
> Thanks. No, I'm just trying (for starters) to override the display in
> the contact list page, no other models.

Then, name would be addresses_column if column name is addresses. In master 
branch you will get a warning with that name schema and you should use 
#{model}_#{column}_column, so override for column addresses from contact model 
would be contact_addresses_column.


>
> On Oct 6, 8:24 am, "Sergio Cambra .:: entreCables S.L. ::."
>
> <[email protected]> wrote:
> > 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]

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