Fill a form from an object that responds to #attributes
calebhearth opened this issue · comments
Fill a form by grabbing keys and values from an attributes hash on an object.
This would look like fill_form(:user, @user)
.
This could also figure out the form being filled, especially if the object responded to model_name
(which an ActiveModel::Model
would): fill_form(@user)
.