This README would normally document whatever steps are necessary to get the application up and running.
Things you may want to cover:
-
Ruby version
-
System dependencies
-
Configuration
-
Database creation
-
Database initialization
-
How to run the test suite
-
Services (job queues, cache servers, search engines, etc.)
-
Deployment instructions
-
...
-
Create model
rails generate model User email:string password:digest
password:digest
is required when you want to save user password
-
Rails DB migrate
rails db:migrate
-
Add bcrypt for managing passwords (only required when you have table with
has_secure_password
)- Uncomment
bcrypt
gem inGemfile
- execute
bundle
for installing the same.
- Uncomment
-
Test connection
By executing rails console with
rails c
.> User > User.all > User.create({email: 'test@test.com', password: "password", password_confirmation: "password"})
-
create a registration controller with
new
andcreate
def -
create
reginstration/new.html.erb
html
binding.irb
it is like a debugger
in js