On Jueves, 17 de Junio de 2010 20:48:12 chdem escribió:
> Hello,
>
> I have two models, A and B, A has_many B and of course B belongs_to A.
>
> In the B, 'denominator' is an enum type (thanks to enum-column
> plugin), declare like this in my migration file :
> t.enum :denominator, :limit
> =>[:IT114, :IT115, :IT116, :IT117, :IT118, :IT119, :IT113, :IT121]
>
> I'm actually trying to devellop a controler, using active_scaffold:A
> and when I want to create a new A, of course, I can also create a new
> B ! That's just great !
> But I haven't a list of the enumerations for the denominator field of
> my new B to create.
>
> The point that is strange is that when I use active_scaffold:B in an
> another controller and tried to create a new B, a list of enumerations
> appears !
>
>
> So, my question is, how can I have the same things in the form of a
> new B in the form of a new A ? (outch, pretty difficult to explain,
> hope not to difficult to understand, ;-) ).

Have you overrided denominator in your B helper?

-- 
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