It's an exercise to work with Bare Metal Forms and Helpers,for Ruby on Rails.
This is part of the Forms Project in The Odin Project’s Ruby on Rails Curriculum.
We create just two actions for User object New and Edit
- Ruby 2.6.5p114
- Rails 5.2.4.2
- SCSS
- HTML5
In order to start with this project:
- You need to have ruby environment installed. Click here for instructions
- Also you going to install Rails environment
- Clone this repository 📘
- Enter to project directory
cd forms-rails
- Install all gems
bundle install
- Migrate the database
rails db:migrate
- Run rails server
rails s
- Go to your browser and type
localhost:300
to load the web site
- Reviewing New.- Type into your browser
localhost:3000/users/new
you'll see the inputs with default values, fill the form and then Submit.
- Reviewing Edit.- Type into your browser
localhost:3000/users/<user_id>/edit
you'll see the inputs with default values, fill the form and then Submit.
Errors User model has some validations to avoid fill empty values(email, username and password). Try to submit with no values an then you'll see these errors.
👤 Bertil Tandayamo
- Github: @bertil291utn
- Twitter: @btandayamo
- Linkedin: Bertil Tandayamo
👤 Manuel Muhun
Contributions, issues and feature requests are welcome!
Give a ⭐️ if you like this project!