Hi,

I remember there was a change from rails 3.0 about conditions. You need to
get it using options[:conditions] instead of method "conditions".

Then, you should use
ActiveRecord::Associations::BelongsToAssociation.new(this_parent,
this_field_reflection).options[:conditions]

Regards,
Arnaud.

2012/10/26 tonym <[email protected]>

> This is all just what I need, but I'm going round in circles trying to
> figure out why I'm getting an error...
>
> I've tried check-many and radio-one.  Also tried modifying check-many, but
> with all cases I always get a 'undefined method `conditions' for
> #<ActiveRecord::Associations::BelongsToAssociation:0x32ee700>'
>
> Tried reproducing with tutorial 8 and get this same error.  Any ideas on
> fixing this?  Is it a v2pre issue or ruby/rails version related?
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Hobo Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/hobousers/-/UL3q-i8SwkgJ.
>
> 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.
>

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