Open calebhearth opened 10 years ago
Fill a form by grabbing keys and values from an attributes hash on an object.
This would look like fill_form(:user, @user).
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).
model_name
ActiveModel::Model
fill_form(@user)
Fill a form by grabbing keys and values from an attributes hash on an object.