Skip to content

Commit 2f8afda

Browse files
author
Raven
committed
FIlled all links URL
1 parent b607234 commit 2f8afda

File tree

5 files changed

+9
-351
lines changed

5 files changed

+9
-351
lines changed

Gemfiless.lock

Lines changed: 0 additions & 103 deletions
This file was deleted.

app/views/layouts/_footer.html.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<footer>
22
<nav class="round">
33
<ul>
4-
<li> <%= link_to "About", '#'%> </li>
5-
<li> <%= link_to "Contact", '#'%> </li>
4+
<li> <%= link_to "About", 'about'%> </li>
5+
<li> <%= link_to "Contact", 'contact'%> </li>
66
<li> <a href="http://news.railstutorial.org/">News</a> </li>
77
<li> <a href="http://www.railstutorial.org/">Rails Tutorial</a> </li>
88
</ul>

app/views/layouts/_header.html.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<header>
2-
<%= image_tag("logo.png", :alt => "Sample App", :class => "round")%>
2+
<%= link_to image_tag("logo.png", :alt => "Sample App", :class => "round"), "/"%>
33
<nav class="round">
44
<ul>
5-
<li> <%= link_to "Home", "#" %> </li>
6-
<li> <%= link_to "Help", "#" %> </li>
5+
<li> <%= link_to "Home", "/" %> </li>
6+
<li> <%= link_to "Help", "help" %> </li>
77
<li> <%= link_to "Sign in", "#" %> </li>
88
</ul>
99
</nav>

config/routes.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
MicroTwitter::Application.routes.draw do
2-
get "pages/home"
2+
root :to => 'pages#home'
33

4-
get "pages/contact"
4+
match '/contact', :to => 'pages#contact'
55

6-
get "pages/about"
6+
match '/about', :to => 'pages#about'
77

8-
get "pages/help"
8+
match '/help', :to => 'pages#help'
99

1010
# The priority is based upon order of creation:
1111
# first created -> highest priority.

public/index.html

Lines changed: 0 additions & 239 deletions
This file was deleted.

0 commit comments

Comments
 (0)