El Saturday 29 November 2008 11:13:17 KoenE escribió:
> Hello,
>
> I have a table :account with an belongs_to association to :member
> In ActiveScaffold, I defined config.columns[:member].form_ui = :select
>
> In the drop-down list, the column "member.name" of all the members
> appear. This is the family name of the members, however I like the
> column "member.full_name" to apear in the drop-down list which
> contains the first name and the family name.
>
> How can I tell ActiveScaffold to chose a different column to show in
> the list box?

You can define to_label method to return full_name


-- 
Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.
Nicolás Guillén 6, locales 2 y 3. 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
-~----------~----~----~----~------~----~------~--~---

  • ch... KoenE
    • ... KoenE
    • ... Sergio Cambra .:: entreCables - Symbol Servicios Informáticos S.L. ::.

Reply via email to