Thanks, that's what I needed. Now, that just leaves the question of
why my field override doesn't work ...

On Oct 6, 7:19 am, "[email protected]"
<[email protected]> wrote:
> Hi Mike,
>
> Take a look at column's 'clear_link' 
> option.http://github.com/activescaffold/active_scaffold/wiki/API%3A-Column
>
> --
> Volker
>
> On 5 Okt., 17:26, MikeBlyth <[email protected]> wrote:
>
> > 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
>
> > which is just trying to put some identifiable garbage into the
> > addresses column. (I'm trying that column because it's static and not
> > linked, so should be simpler than using the linked name column, but
> > the same problem occurred when I tried the name).
>
> > I've tried every permutation I can think of for placing the module (in
> > the model, after the model, in the contacts_helper.rb file) and
> > pluralizing bits of the method name, but nothing ever happens ... I
> > just get the same (normal) data in the address column.
>
> > What am I doing wrong? And is this the way to keep AS from putting a
> > link around the data in a column?
>
> > Thanks.
>
>

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