Acts_as_taggable problem with saving tags


I have the following code:

user = User.find(session[:user_id])
photo =[“picture”])

photo.tag(@params[“picture_tags”]) << << 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”])

photo.tag ‘brazil soccer’ << << 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.