learn Ruby testing Git
I. Doing demo application
- Create new application by executing command "rails new app"
- cd to app by executing command "cd app"
- Create controller by executing command "rails generate controller post"
- Create a response file with extension .erb by executing command "vim app/views/post/index.html.erb"
4.1 content of index.html.erb file:
Hello World
- Create route for post controller by editing the config/routes.rb and add the "resources :post"
- Create model to work with DB by executing command "rails generate model post"