|
Hi, Assuming the code is the same as "https://github.com/projectfedena/projectfedena_v2.0" You can find the upper menu embedded in "/app/views/layouts/application.html.erb"
An easy solution will be (same menu everywhere), change the CSS of "main-menu" and creating "sidebar_menu" and some code like this: <div id="main-menu"> <% this_user = User.find(session[:user_id])%> <ul class="sidebar_menu"> <li><%= link_to "Dashboard", :controller => "user", :action ="" "dashboard" %></li> <% if this_user.student? || this_user.employee? %> <li><%= link_to "Calendar", :controller => "calendar" %></li> <% end %> <% if this_user.admin? %> <li><%= link_to "Students", :controller => "student", :action ="" "index" %></li> <li><%= link_to "Attendance", :controller => "student_attendance", :action ="" "index" %></li> <li><%= link_to "Settings", :controller => "configuration", :action ="" "index" %></li> <li><%= link_to "News", :controller => "news", :action ="" "index" %> </li> <li><%= link_to "Timetable", :controller => "timetable", :action ="" "index" %></li> <% end %> </ul> <a href="" class="menuanchorclass" rel="anylinkmenu1">More </a> </div> No need of partial or magic ROR... just HTML and CSS. Greetings, El 16/08/2011 15:25, hanish jadala escribió: i hope u saw the site . there is a menu on the top rite so, if i need that menu on left side of the screen what should i do. i mean how to write the code of that. -- -- Miquel Cubel Escarré +34 699 73 22 46 [email protected] "Computers are good at following instructions, but not at reading your mind." Donald Knuth. "Los ordenadores son buenos siguiendo instrucciones, pero no leyendo tu mente." Donald Knuth.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. |
- [Rails] left menu for Fedena Project honey ruby
- Re: [Rails] left menu for Fedena Project Miquel Cubel
- Re: [Rails] left menu for Fedena Project hanish jadala
- Re: [Rails] left menu for Fedena Project Colin Law
- Re: [Rails] left menu for Fedena Project hanish jadala
- Re: [Rails] left menu for Fedena Proje... Colin Law
- Re: [Rails] left menu for Fedena P... hanish jadala
- Re: [Rails] left menu for Fede... Miquel Cubel

