Actually I think I found one solution to my own question here... you
have to call the field "name".

However this doesn't work in all cases (e.g. when I want to use a
number field for the display, or a field that has a different name) -
so I'm still interested to get some opinions/suggestions on this.

Thanks
Alex

On Mar 29, 10:59 pm, Alex Bowyer <[email protected]> wrote:
> Something I have hit in a couple of different places is that objects
> are displayed by their ID and I would rather display them by their
> name...
>
> For example I have a model
> with
> ---
> Currency
>     identifier: string (e.g. USD)
>     etc...
>
> ----
> Account
>     name:string
>
> belongs_to :currency
> ----
>
> When I edit an account, the dropdown to select currency shows
> "Currency 1" and I would like to set it to show "USD". Do I have to do
> some DRYML tag replacement for each time the currency field is used
> (and if so how do I do this for a dropdown)? Or, is there some way to
> say "always use the identifier field when displaying a currency
> object"?
>
> Thanks
> Alex Bowyer

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en.

Reply via email to