次に例を示します。
@profiles = Profile.where(something: true)
代わりに:
@profiles.each do |profile|
@some_user.tag(profile, :with => "paris, normandy")
end
次のように、1 回の呼び出しでモデルのすべてのインスタンスにタグを付ける方法はありますか?:
@some_user.tag(@profiles, :with => "paris, normandy")