Maybe you could make it happen with the :select and :table parameters
to make the data type look like a table/std AR object?
# :select - By default, this is "*" as in "SELECT * FROM", but can be
changed if you, for example, want to do a join but not include the
joined columns. Takes a string with the SELECT SQL fragment (e.g. "id,
name").
# :from - By default, this is the table name of the class, but can be
changed to an alternate table name (or even the name of a database
view).

Or, does postgres have views? Could you create a view that for the
data type and returns what looks like a std table result and use
that?

Regards,
Kerry

On May 19, 9:20 pm, mickey <[email protected]> wrote:
> Hi
>
> I'm using postgres and to have enums like in Mysql we use custom data
> types so in my migration file i have somethin glike this:
>
> execute "CREATE TYPE personality AS ENUM ('shy', 'wild',
> 'normal');"
>
> My question is, how do i make active scaffold show up the enumerated
> data types because right now active scaffold doesn't render any form
> controls.
>
> If "personality" were a table, then i would just create a personality
> active record class, then declare a belongs_to association and active
> scaffold would automatically create a select input control.
>
> but then again "personality" is not a table.
>
> 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