/rails_form

Example of how to deal with form in Rails

Primary LanguageRuby

Re-former

A example of form using Rails.

screenshot


This project consists of using Ruby On Rails to build a form to create and edit a user

Content

Features

  • 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

Built With

  • Ruby 2.7
  • Ruby on Rails 5.2
  • Rubocop (Linter) with Stickler (CI Tool)
  • Git, Github and VScode

Getting Start

Install

To use this program, you will need install:

Get a local copy

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.

Run

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

Contributing

Contributions, issues and feature requests are welcome!

You can do it on issues page.

Acknowledgments

A special thanks for the code reviewers.

Author

👤 Rafael Nazario

👤 Thiago Miranda

License

Creative Commons