Heres what I\'m trying to accomplish:
I believe the other answers are a bit dated. Here's how you should probably accomplish this for Rails 4
tag = Tag.first_or_initialize(:name => self.name, :user_id => current_user.id) if !tag.new_record? tag.id = self.id tag.save end