On Apr 27, 2010, at 10:06 AM, Chris Apolzon wrote:
Ah, I guess I was trying to use a helper function then? I copied
the enum_string code that was in the model for one of the samples
and it didn't work:
field_name enum_string(:first, :second)
I also tried:
t = enum_string(:first, :second)
I'm (obviously) a rails novice and just beginning with Hobo. I'm
guessing that if I had spent any previous time in the rails console
I would have known to use the module syntax.
The lowercase enum_string format is part of the fields DSL; it's only
available inside the fields do / end block in a model. Brett's version
is what the DSL ends up running.
--Matt Jones
--
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.