On Mon, Feb 27, 2012 at 10:14 AM, Peter Pavlovich <[email protected]> wrote:
> Hi again!
>
> So, is there any fundamental reason why hobo doesn't have good support for
> "has_one" relationships? Or was it just that there wasn't time in the
> schedule? I only ask because perhaps I might investigate adding/enhancing
> that support as a contribution to the project. If so, perhaps we can chat
> about what this would entail?

There are two large pieces that would need to be done:

   either add has-one support to [accessible
associations](http://cookbook.hobocentral.net/manual/multi_model_forms)
or rip accessible associations out of hobo and rearchitect hobo to use
accepts_nested_attributes_for.   The latter is the right thing to do,
the former would be easier.

and

  an input-one tag.

>
> In the interim, when you say "constrain N to [0,1] via validations", can you
> point me to an example I can study?

http://apidock.com/rails/ActiveModel/Validations/ClassMethods/validates_length_of

Bryan

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