Thanks again, Sergio.

On Apr 15, 5:24 am, "Sergio Cambra .:: entreCables S.L. ::."
<[email protected]> wrote:
> On Miércoles, 14 de Abril de 2010 16:44:47 scrozier escribió:
>
> > Greetings,
>
> > I've got an embedded scaffold for a HABTM relationship. Let's say that
> > I'm on a page showing one Group and the scaffold is letting me
> > maintain the Group's Members. The scaffold is very simple; Members has
> > a single field, "name".
>
> > Everything is great until someone has a really long name. Then the
> > drop-down selection list lurches off the page to the right.
>
> > I can set up a name_column helper, and it gets applied to the list
> > view, but not to the items in the selection list.
>
> > Is there a way to format items in the selection list?
>
> Yes, override to_label in the model:
> def to_label
>         name[0..30]
> end
>
>
>
> > Thanks!
>
> > Steve
>
> --
> 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