calebhearth / formulaic

Simplify form filling with Capybara

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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