This README would normally document whatever steps are necessary to get the application up and running.
Things you may want to cover:
-
Ruby version ruby 2.4.4p296 (2018-03-28 revision 63013) [x86_64-darwin18] Rails 5.2.4.1
-
System dependencies
-
Configuration
-
Database creation
-
Database initialization
-
How to run the test suite
rails s
-
Services (job queues, cache servers, search engines, etc.)
-
Deployment instructions
clone repo:
git clone https://github.com/bhandaribhumin/rails-donation-app.git
Then run:
bundle install
To run project:
rails s
open browser and goto localhost:3000
user guide CLI:
- generate model(interface) for
rails g model User email password_digest
- updte model changes
rails db:migrate
- generate scaffold (controller)
rails g scaffold <ClassName> <parameters>
rails g scaffold Artist name:string user:refrences
rails g scaffold Record title:string year:string artist:references user:references
- Destroy scaffold
rails d scaffold Artist
- Generate Controller
rails g controller <controller name> <method>
rails g controller signup create
- insert
run:
rails c
c is for console
Artist.create!(name: "Bhumin in India")
- view
Artist.all