Commit d7b94b97

mo khan <mo@mokhan.ca>
2014-09-02 15:33:44
hide the creations and tutorials links.
1 parent ae0449c
Changed files (2)
app
views
config
app/views/my/shared/_my_nav.html.erb
@@ -2,8 +2,10 @@
   <ul class="nav nav-list">
     <li class="nav-header">My</li>
     <li class="<%= "active" if controller?("dashboard") %>"><%= link_to "Dashboard", my_root_path %></li>
+    <!--
     <li id="cakes-tab" class="<%= "active" if controller?("cakes") %>"><%= link_to "Creations", my_root_path(anchor: 'cakes') %></li>
     <li id="tutorial-tab"><%= link_to "Tutorials", my_root_path(anchor: 'tutorials') %></li>
+    -->
     <li class="<%= "active" if controller?("favorites") %>"><%= link_to "Favorites", my_favorites_path %></li>
     <li class="<%= 'active' if controller?('settings') %>"><%= link_to "Settings", my_settings_path %></li>
     <li class="<%= 'active' if controller?('passwords') %>"><%= link_to "Password", my_passwords_path %></li>
config/routes.rb
@@ -76,7 +76,6 @@ Cake::Application.routes.draw do
     resources :settings, only: [:index, :update]
     resources :passwords, only: [:index, :update]
     resources :avatars, only: [:edit, :update]
-    #root to: "home#index"
     root to: "dashboard#index"
   end
 end