I believe you already have the has_many :through setup. Are you asking how to add to the user a favorite recipe? Should be simple:
@user.favorite_recipes << recipe Maybe you had a different question? On Feb 9, 4:07 pm, Vadim Lazuko <[email protected]> wrote: > Hi! > > Lifecycles does not fit logically being something more like subprocess > of one object while my case is pure many-to-many relationship > > i see that the only way is to create a controller action for the user > model and pass a recipe as a parameter to handle attach/detach from > the favourites' list > > can you give me an example of code to deal with 'has_many ... :through > =>...' ? -- 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.
