formulaic
formulaic copied to clipboard
Fill a form from an object that responds to #attributes
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).