Could you simplify this to:
@tag = Tag.new(user_id: current_user.id, group_id: current_user.group_id, name: tag)