docker-compose run --rm --service-port web bash
rails db:create
docker-compose run web bundle show
docker-compose run web bundle install --without production
app/controllers/application_controller.rb
protect_from_forgery with: :exception
def hello
render html: "hello, world!"
end
config/routes.rb
docker-compose run web rails generate controller StaticPages home help
docker-compose run web rails destroy controller StaticPages home help
docker-compose run web rails test
test "should get about" do
get static_pages_about_url
assert_response :success
end
app/views/static_pages/home.html.erb
, app/views/static_pages/help.html.erb
config/routes.rb
touch app/views/static_pages/about.html.erb