I got that working now .. thanks a lot :)
On Jun 8, 11:33 am, Matt Jones <[email protected]> wrote:
> The error message should help you out:
>
> On Jun 8, 2009, at 1:27 AM, Raghu. M wrote:
>
> > c:/ruby/lib/ruby/gems/1.8/gems/hobo-0.8.7/lib/hobo/model_router.rb:
> > 176:in `owner
> > _routes': Hob routing error -- can't find reverse association for
> > Recipe#author
> > (e.g. the :has_many that corresponds to a :belongs_to)
>
> In short, Hobo is looking for the reverse association to author.
> You'll need to define it on User:
>
> class User < AR::Base
> hobo_user_model
>
> has_many :recipies, :foreign_key => 'author_id'
> end
>
> You may also want to look into the :creator flag to belongs_to; if you
> set it up correctly, Hobo will automatically fill in the author with
> the acting user.
>
> --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
-~----------~----~----~----~------~----~------~--~---