Rails | 11:32 | form_forでフォームを作成していました。 f.error_messages %> p> f.label :parent_id %>br /> f.text_field :parent_id %> p> p> f.label :name %>br /> f.text_field :name %> p> p> f.submit '登録' %> p> parent_idをhiddenにして値を与えようとするとき、hidden_field_tagではなくて、f.hidden_fieldができないのかなと思っていたら、ちゃんとできました。 f.error_messages %> f.hidden_field :parent_id, :value => @parent_id %> p> f.label :name %>br /> f.text_field :nam