Georjane / Forms

Building a form the old fashioned way with basic HTML and then the Rails way with the use of form helpers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Re-former

This project actually builds some forms, both using nearly-pure HTML and then graduating to using the helper methods that Rails provides. It is gotten from The Odin Project.

Screenshot

Tools and technologies used to build this project

  1. Ruby 2.7.1
  2. Ruby on Rails 6.0.3.2
  3. Bootstrap

Running and testing it locally

Prerequisites

  1. You should have Ruby 2.7.1
  2. You need to have Rails 6.0.3.2
  3. You need to have Yarn v1.22.4

Setup

  1. Clone this repository with https://github.com/Georjane/Forms.git

  2. Go inside this repo locally by typing cd re-former

  3. Run bundle install to install all ruby dependecies

  4. Run yarn to install js dependencies

  5. Run bin/rails db:migrate to create necessary tables in database

Testing

  1. Start the server by running bin/rails server, if all of the above steps has been followed correctly, you should get a server started on https://127.0.0.1:3000 or easily https://localhost:3000
  2. Go to these paths:
    GET   /users/new => Create a user 1
    GET   /users/1/edit => Edit user 1

and observe the changes in your terminal

Author

Witah Georjane

Show your support

Give a ⭐️ if you like this project!

Acknowledgment

About

Building a form the old fashioned way with basic HTML and then the Rails way with the use of form helpers


Languages

Language:Ruby 71.9%Language:HTML 17.5%Language:JavaScript 8.5%Language:CSS 2.1%