Use validated_arguments to know metadata about method arguments and the ActiveModel compliant API to build the form
Nilesh Trivedi
gem "auto_form", "~> 0.0.2"