Commit 0a805545
Changed files (4)
app
views
layouts
config
app/views/home/about_us.html.erb
@@ -0,0 +1,6 @@
+<% content_for :title do %>
+ About Us
+<% end %>
+
+<h2>About us</h2>
+
app/views/home/why_cakeside.html.erb
@@ -0,0 +1,6 @@
+<% content_for :title do %>
+ About Us
+<% end %>
+
+<h2>Why Cakeside</h2>
+
app/views/layouts/application.html.erb
@@ -77,8 +77,8 @@
<% unless user_signed_in? %>
<li> <a href="<%= url_for new_user_session_path %>">Sign-Up</a> </li>
<% end %>
- <li> <a href="<%= url_for new_user_session_path %>">About Us</a> </li>
- <li> <a href="<%= url_for new_user_session_path %>">Why CakeSide?</a> </li>
+ <li> <a href="/home/about_us">About Us</a> </li>
+ <li> <a href="/home/why_cakeside">Why CakeSide?</a> </li>
</ul>
</div>
<div class="span4">
config/routes.rb
@@ -4,6 +4,8 @@ Cake::Application.routes.draw do
# /home
get "home/index"
+ get "home/about_us"
+ get "home/why_cakeside"
# /creations
resources :creations do