Displaying 1 result from an estimated 1 matches for "locations_tags".
2006 Feb 26
5
Help On Associations Extension.
Hi to all,
I''m needing some help here ... I want to do an extension on a
has_and_belongs_to_many to build a custom add method to the
association.
i have a table locations that has a many-to-many association with a
tags tabel using a locations_tags table.
i want to add a method to the Location has_and_belongs_to_many
association so that i can do something like this on the location
model:
myLocation.tags.add_by_names ''tag1 tag2 tag3''
On the extension i want to do something like this:
class Location < ActiveRecord::Ba...