A example of form using Rails.
This project consists of using Ruby On Rails to build a form to create and edit a user
- The only model is User
- You can create and edit users
- It has validations to create and edit
- A message is show if one of the validations is not fulfilled
- Ruby 2.7
- Ruby on Rails 5.2
- Rubocop (Linter) with Stickler (CI Tool)
- Git, Github and VScode
To use this program, you will need install:
-
Ruby Language - Version 2.5 up to 2.7 - Install guide
-
Ruby on Rails - Version 5.2 - Install guide
Now you need a copy of this application, if you are using Git:
git clone git@github.com:SevlaMare/rails_form.git
Otherwise just hit (Download Zip) on green button (Clone or Download) at top of this page.
To run, from the application folder, just type on terminal:
rails server
Now you can go to your favorite web browser like Google Crome and access the url
http://localhost:3000/users/new
There you can create a user
To edit this user, go to:
http://localhost:3000/users/1/edit
Where 1 is the id, with same order as you create the users
Contributions, issues and feature requests are welcome!
You can do it on issues page.
A special thanks for the code reviewers.
👤 Rafael Nazario
- Github: @rsnazario
- Twitter: @rsnazario
- Linkedin: Rafael Nazario
👤 Thiago Miranda
- Github: @SevlaMare
- Twitter: #SevlaMare)
- Linkedin: SevlaMare)
Creative Commons