Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fill a form from an object that responds to #attributes #10

Open
calebhearth opened this issue Jan 31, 2014 · 1 comment
Open

Fill a form from an object that responds to #attributes #10

calebhearth opened this issue Jan 31, 2014 · 1 comment

Comments

@calebhearth
Copy link
Owner

Fill a form by grabbing keys and values from an attributes hash on an object.

@ghost ghost assigned calebhearth Jan 31, 2014
@calebhearth
Copy link
Owner Author

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant