Skip to content

Commit

Permalink
Added a page for sdflming
Browse files Browse the repository at this point in the history
  • Loading branch information
sdflem committed Sep 5, 2018
1 parent 0db7926 commit 51cbfd0
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 0 deletions.
Binary file added app/assets/images/scott-2018-square.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions app/controllers/pages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ def home
def about
# render 'about.html.erb'
end

def sdflming
# render 'sdflming.html.erb'
end
end
4 changes: 4 additions & 0 deletions app/views/pages/about.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<h1>About</h1>

<ul>
<li><%= link_to 'Scott Fleming', sdflming_path %></li>
</ul>

<p>
<%= link_to 'Home', home_path %>
</p>
15 changes: 15 additions & 0 deletions app/views/pages/sdflming.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<h1>Scott Fleming</h1>

<p>
Hello! Welcome to the page that's all about me!!
</p>

<p>
Here's my homepage: <%= link_to 'http://sdflem.github.io/', 'http://sdflem.github.io/' %>
</p>

<%= image_tag("scott-2018-square.jpg") %>

<p>
<%= link_to 'Home', home_path %>
</p>
1 change: 1 addition & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
root to: 'pages#home'
get 'home', to: 'pages#home', as: 'home'
get 'about', to: 'pages#about', as: 'about'
get 'sdflming', to: 'pages#sdflming', as: 'sdflming'
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
end

0 comments on commit 51cbfd0

Please sign in to comment.