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"

        <div id="main-menu">
          <%= link_to "Dashboard", :controller => "user", :action => "dashboard" %>
          <% this_user = User.find(session[:user_id]) if session[:user_id] %>
          <% if this_user.student? || this_user.employee? %>
            <%= link_to "Calendar", :controller => "calendar" %>
          <% end %>
          <%= link_to "Students", :controller => "student", :action => "index" \
            if this_user.admin? %>
          <%= link_to "Attendance", :controller => "student_attendance", :action => "index" \
            if this_user.admin? %>
     ;      <%= link_to "Settings", :controller => "configuration", :action => "index" \
            if this_user.admin? %> <!--
<%= link_to "News", :controller => < span class="s2">"news", :action => "index" \
            if this_user.admin? %> -->
          <%= link_to "Timetable", :controller => "timetable", :action => "index" \
            if this_user.admin? %>
          <% if this_user.admin? %>
            <a href="">"#" class="menuanchorclass" rel="anylinkmenu1">More ▼</a>
          <% end %>
        </div>

    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. --
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.

-- 
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.

Reply via email to