Commit 0a805545

mo k <m@mokhan.ca>
2012-01-31 04:35:32
add about_us and why_cakeside pages.
1 parent db0ab6c
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