Hi,
I have the following code:
user = User.find(session[:user_id])
photo = Picture.new(@params[“picture”])
photo.tag(@params[“picture_tags”]) <<
user.pictures << photo
I’m trying to use the acts_as_taggable plugin, I’m finding that my tags
table is not getting the tags saved for the above line in question (>>
… <<).
However, if I do this instead:
user = User.find(session[:user_id])
photo = Picture.new(@params[“picture”])
photo.tag ‘brazil soccer’ <<
user.pictures << photo
It is getting saved successfully but obviously I manually set the tags.
I can’t seem to figure out why bulk load of tags doesn’t get set in the
tables. Any help would be appreciated.
Thanks.