From 68d1c262b9f31dd983b1d192662d1c182f8956db Mon Sep 17 00:00:00 2001 From: Michael Cade Date: Fri, 6 Jan 2023 23:01:35 +0000 Subject: [PATCH] Add Day 6 - Hands-On: Building a weak app --- 2023/day06.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/2023/day06.md b/2023/day06.md index d1fbad9..59aa1dd 100644 --- a/2023/day06.md +++ b/2023/day06.md @@ -76,7 +76,8 @@ end ``` If navigate to this folder, you can use `vagrant up` to spin up your centos7 machine in your environment. -![](images\day06-1.png) +![](images/day06-1.png) + Then we will need to access our machine, you can do this with `vagrant ssh` @@ -151,11 +152,11 @@ bundle exec rake db:migrate We can then run our app with `bundle exec rails server -b 0.0.0.0` -![](images\day06-2.png) +![](images/day06-2.png) Then open a browser to hit that box, I had to change my VirtualBox VM networking to bridged vs NAT so that I would be able to navigate to it vs using vagrant ssh. -![](images\day06-3.png) +![](images/day06-3.png) Now we need to **scaffold** a basic model @@ -168,13 +169,13 @@ bundle exec rails generate scaffold Bootcamp name:string description:text dates: bundle exec rake db:migrate ``` -![](images\day06-4.png) +![](images/day06-4.png) Add a default route to config/routes.rb `root bootcamps#index` -![](images\day06-5.png) +![](images/day06-5.png) Now edit app/views/bootcamps/show.html.erb and make the description field a raw field. Add the below.