私の User モデルにはフィールドがありませんが、サインアップ フォームにフィールド:nameを含めたいと考えています。このフィールドを使用して、別のモデルのレコードを.:nameafter_create
class User < ActiveRecord::Base
after_create :create_thing
private
def create_thing
@thing = Thing.new
@thing.name = <here's where I need help>
@thing.save!
end
end
サインアップフォームから名前を取得するにはどうすればよいですか?