lva nlink fix

This commit is contained in:
Andreas Stephanides
2014-11-28 20:48:22 +01:00
parent dc124e3810
commit 85c6985a06
2 changed files with 7 additions and 4 deletions

View File

@@ -205,6 +205,9 @@ class Lva < ActiveRecord::Base
text :lernaufwand
text :typ
text :name, :boost=>3.0
text :lecturer_names do
lecturers.map { |l| l.name }
end
end
def self.update_multiple_with_modul(hash,modul)

View File

@@ -1,2 +1,2 @@
<h2><%= nlink.title unless nlink.nil? %></h2>
<%= render :partial=> "lvas/lva", :object=>nlink unless nlink.nil? %>
<h2><%= nlink.typ_n.to_s + ' ' + nlink.title unless nlink.nil? %></h2>
<% render :partial=> "lvas/lva", :object=>nlink unless nlink.nil? %>