Skip to content

Commit

Permalink
Merge pull request #694 from toasterlovin/nav-links-readme-fix
Browse files Browse the repository at this point in the history
Fix nav bar example in README
  • Loading branch information
seyhunak committed Feb 5, 2014
2 parents 6351ec0 + b92f03e commit 7383e60
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -437,17 +437,17 @@ menu_item generates a link wrapped in an li tag. It takes two arguments and an o

````
<%= nav_bar :fixed => :top, :brand => "Ninety Ten" do %>
<% menu_group do %>
<%= menu_group do %>
<%= menu_item "Home", root_path %>
<%= menu_item "About Us", about_us_path %>
<%= menu_item "Contact", contact_path %>
<% end %>
<% if current_user %>
<%= menu_item "Log Out", log_out_path %>
<% else %>
<% menu_group :pull => :right do %>
<%= menu_group :pull => :right do %>
<%= menu_item "Sign Up", registration_path %>
<% form_for @user, :url => session_path(:user) do |f| -%>
<%= form_for @user, :url => session_path(:user) do |f| -%>
<p><%= f.text_field :email %></p>
<p><%= f.password_field :password %></p>
<p><%= f.submit "Sign in" %></p>
Expand Down

0 comments on commit 7383e60

Please sign in to comment.