<% if current_user %>
-
<%= link_to "/accoount" , :class => "dropdown-toggle", :data => { :toogle => "dropdown" } do %>
<%= current_user.email %>
<% end %>
<%= render_list :class => "dropdown-menu" do |li|
li << link_to("Logout",destroy_user_session_path, :method => :delete )
end %>
<% else %>
- <%= link_to( "Sing Up" ,new_user_registration_path) %>
- <%= link_to( "Login", new_user_session_path ) %>
<% end %>