small medium large xlarge

Generic-user-small
11 Jun 2008, 16:48
Jeffrey Lee (3 posts)

I am trying to replace tasks with a HABTM relationship in this example. Everything work fine except for the creation of join records.

When I create my location (profiles habtm locations) the location record is added and the profile is added (if new); however, the locations_profiles table is not updated with the association.

Everything else is the same as the tutorial but it does not mention what one would do with habtm relationships.

Any ideas? Do I need to do something more than just @profile.save to make this work?

You must be logged in to comment