thanks I also tried (in parents helper):
def many_relationship_column(record)
record.many_relationship.collect{| item| h(item.title)}.join('
<BR> ')
end
On Feb 9, 2:03 pm, Kenneth Ortmann <[email protected]> wrote:
> sorrry... not *super*, *render_list_column*
>
> def parents_column(record)
> column = active_scaffold_config.list.columns[:parents]
> link_text = "hello"
> render_list_column(link_text, column, record)
> end
>
> On Tue, Feb 9, 2010 at 1:02 PM, Kenneth Ortmann
> <[email protected]>wrote:
>
> > Give this a try.
>
> > If the name of your nested column is parents I think you can do something
> > like this in your helper file.
> > This needs to be in the helper file for the Controller that is being
> > rendered.
> > you could then change the text to whatever you want it as.
>
> > def parents_column(record)
> > column = active_scaffold_config.list.columns[:parents]
> > link_text = "hello"
> > super(link_text, column, record)
> > end
>
> > ~Kenny
>
> > On Tue, Feb 9, 2010 at 10:53 AM, joelkeepup <[email protected]> wrote:
>
> >> Hi, I have a 1-many nested link today they display like:
>
> >> thisone, thatone, the other one
>
> >> I want to display like:
> >> href around(
> >> 1. this one
> >> 2. that one
> >> 3. other one)
>
> >> can you give me an example of how to do this?
>
> >> thanks
> >> Joel
>
> >> --
> >> 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]<activescaffold%[email protected]>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/activescaffold?hl=en.
--
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.