In this project I Implemented the multiple ways to build a form in rails that can send parameters to a controller so that it can build an instance of a model with those parameters. I built our form using HTML, Form_tag and finally using Form_with. I also added features for edit and delete record from database as optional.
Contributions make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Ruby & Rails installed on your local machine.if not install it following steps in this link:Rails installation steps
- bundle installed on your machine
- Terminal or similar to execute the program.
To get a local copy of this application running it on your computer follow these simple example steps.
- Clone this repository with git clone
https://github.com/uwadonat/re-fomer.git
using your terminal or command line. - Change to the project directory by entering:
cd re-former
in the terminal.
- run the command
bundle install
This will install the required dependencies - run the command
rails db:create
. This will initialize the necessary migration files - run the command
rails db:migrate
- run the command
rails server
- open a browser window and navigate to http://localhost:3000
- If my form is displayed in your browser, take care. It means that rails is well installed in your computer otherwise restart installation of Rails following this link
- You can now Enjoy our project by creating new user using the form.
👤 Donat UWAMAHORO
This project is MIT licensed.