Semesteransicht auf RESTful routes aufgebaut

This commit is contained in:
Thomas Blazek
2013-08-01 11:57:37 +02:00
parent bbaa9b89dd
commit afd85d0bc0
8 changed files with 80 additions and 75 deletions

View File

@@ -0,0 +1,10 @@
<%= link_to '<i class="icon-list"></i>'.html_safe+ I18n.t("studien.allestudien"), studien_path,:raw=>true %> /
<% Studium.all.each do |s| %>
<% if @sem=='true' %>
<%= link_to s.name + " / ", studium_semesteransicht_path(s) %>
<% else %>
<%= link_to s.name + " / ", studium_path(s) %>
<% end %>
<% end %>
<%= link_to @text, @path%>