Skip to content

zhabinka/rails-project-lvl1

Repository files navigation

Actions Status

HexletCode

Gem allows you to automatically generate a form in web application.

Installation

make install
make lint

Usage

require 'hexlet_code'

User = Struct.new(:name, :job, :gender, keyword_init: true)
user = User.new name: 'ck', job: 'hexlet', gender: 'male'

HexletCode.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 cols="20" rows="40" name="ck">hexlet</textarea>
# </form>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published