Skip to content
Browse files

helper method added

  • Loading branch information...
1 parent 276ab20 commit 75cd6dc7d051c98bf84ca58b2f3563604a8685aa @safalmj committed Aug 26, 2012
Showing with 22 additions and 2 deletions.
  1. +1 −1 app/helpers/application_helper.rb
  2. +21 −1 app/views/layouts/application.html.erb
View
2 app/helpers/application_helper.rb
@@ -5,7 +5,7 @@ def full_title(page_title)
if page_title.empty?
base_title
else
- "#{base_title} | #{page_title}"
+ "#{base_title} | #{page_title}"
end
end
end
View
22 app/views/layouts/application.html.erb
@@ -5,10 +5,30 @@
<%= stylesheet_link_tag "application", :media => "all" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
+ <!--[if lt IE 9]>
+ <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+ <![endif]-->
</head>
<body>
-<%= yield %>
+ <header class="navbar navbar-fixed-top">
+ <div class="navbar-inner">
+ <div class="container">
+ <%= link_to "sample app", '#', id: "logo" %>
+ <nav>
+ <ul class="nav pull-right">
+ <li><%= link_to "Home", '#' %></li>
+ <li><%= link_to "Help", '#' %></li>
+ <li><%= link_to "Sign in", '#' %></li>
+ </ul>
+ </nav>
+ </div>
+ </div>
+ </header>
+
+ <div class="container">
+ <%= yield %>
+ </div>
</body>
</html>

0 comments on commit 75cd6dc

Please sign in to comment.
Something went wrong with that request. Please try again.