Skip to content

Suban05/easy-form

Repository files navigation

Build Status

Easy form

The simple form builder.

Usage

User = Struct.new(:name, :job, :gender, keyword_init: true)
user = User.new name: 'rob', job: 'programmer', gender: 'm'
EasyForm.form_for user do |f|
  f.input :name
  f.input :job, as: :text
end

# <form action="#" method="post">
#   <input name="name" type="text" value="rob">
#   <textarea name="job" cols="20" rows="40">programmer</textarea>
# </form>

Running Tests

To run the test suite, first install the necessary dependencies:

make install

Then, you can run the tests with:

make test

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published