In this project, I used 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.
- Ruby 2.7.0
- Ruby on Rails 2.7.0
- To run this project locally, please ensure you have Ruby and Ruby on Rails installed on your machine.
- Open the terminal.
- Clone this repository by running:
git clone https://github.com/AhmedAmin90/rails_form
- Enter to the folder of the project in your local machine and After that write in the terminal:
bin/rails server
To run the server.
-
Open http://localhost:3000/users/new to create new users or http://localhost:3000/users/:id/edit Where :id = the id number of the user.
-
If you want to check the id number of the user you can write in the terminal:
bin/rails console
Then write User.all to see list of all users in the database as this screenshot:
👤 *Ahmed Amin
- Github: @AhmedAmin90
- Twitter: @AhmedAmin12383
- LinkedIn: AhmedAmin
Give a ⭐️ if you like this project!
- Microverse
- The Odin Project
This project is MIT licensed.