/re-former

The purpose of this project is to present the rails helper methods in order to create an HTML form

Primary LanguageRuby

Re-Former

Contributors Forks Stargazers Issues


Microverse Logo

re-former Application

This project is part of the Microverse curriculum in Ruby On Rails course!
Explore the docs »

Report Bug Request Feature

The purpose of this project is to present the rails helper methods in order to create an HTML form. Initially we created a form using native HTML mark-up and gradually re-formed it to follow rails practices using helper methods. We implemented one form to handle user’s details insertions to the Users table in a database. Additionally, for convenience, we created an index form to access all users, a details form to view the user’s details and an edit form to edit those details and also to handle input errors.


program interface


program interface


program interface


program interface


program interface


Table of Contents

About The Project

The project creates a SQLite database which holds one table:
- Users
- Fields : username, email, password, created_at, update_at

Constrainsts for user table are as follows:

  • Minimun lenght for username: 4 characters
  • Minimun lenght for email: 10 characters
  • Minimun lenght for password: 6 characters

Application Instructions

  • Initially the application shows the users index
  • By clicking the 'New user' button you can add a new user by filling the fields and clicking on 'Create user' button
  • In the index, clicking on a user shows the user's details page
  • In user details, clicking the 'Edit' button shows the edit user details page. After editing, click on the 'Update user' button to save the changes
  • Invalids inputs show appropriate error messages

System Requierments

  • Ruby
  • Rails
  • Yarn

Configuration

  • first, clone the project Run
  git clone https://github.com/ioanniskousis/re-former.git
  • Install the necessary dependancies Run
  bundle install
  yarn install

Database initialization

In order to add initial data to the database run

  rails db:seed

This will add 4 users


Development / contribution

  • Clone the project
  https://github.com/ioanniskousis/re-former.git

Built With

This project was built using these technologies.

  • Ruby version 2.6
  • Ruby On Rails version 6.0

Contributors

👤 Author_1 ​## Ioannis Kousis

👤 Author_2 ​## Eric Mbouwe


Acknowledgements