Skip to content

We built actually some forms, both using nearly-pure HTML and then using the helper methods that Rails provides

Notifications You must be signed in to change notification settings

bertil291utn/forms-rails

Repository files navigation

Project:Forms

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

Built With

  • Ruby 2.6.5p114
  • Rails 5.2.4.2
  • SCSS
  • HTML5

Getting start

Install

In order to start with this project:

  1. You need to have ruby environment installed. Click here for instructions
  2. Also you going to install Rails environment
  3. Clone this repository 📘

Run

  1. Enter to project directory cd forms-rails
  2. Install all gems bundle install
  3. Migrate the database rails db:migrate
  4. Run rails server rails s
  5. 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.

image

  • 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.

image

Authors

👤 Bertil Tandayamo

👤 Manuel Muhun

🤝 Contributing

Contributions, issues and feature requests are welcome!

Show your support

Give a ⭐️ if you like this project!

About

We built actually some forms, both using nearly-pure HTML and then using the helper methods that Rails provides

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published