Forms are a very common element of all web application so it's a good idea to have easy ways to generate forms. Rails comes with excellent views helpers: form_tag and form_for that help us generate forms. That said, there are even easier ways to generate forms using the SimpleForm gem. There is also another gem Formtastic that does something similar.
We start setting up SimpleForm by adding the gem to our Gemfile:
gem 'simple_form'
Then run bundle to install the gem. Then run