From 2ca5f4943652e121bd9caf86a80318b23e9505f3 Mon Sep 17 00:00:00 2001 From: Andreas Stephanides Date: Fri, 26 Jun 2015 15:03:04 +0200 Subject: [PATCH] AutoCommit Fre Jun 26 15:03:04 CEST 2015 --- app/controllers/lvas_controller.rb | 2 +- app/views/beispiele/edit.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/lvas_controller.rb b/app/controllers/lvas_controller.rb index 760d3e4..a5d0360 100755 --- a/app/controllers/lvas_controller.rb +++ b/app/controllers/lvas_controller.rb @@ -48,7 +48,7 @@ class LvasController < ApplicationController @lva = Lva.find_by_id(params[:id]) @beispiel=Beispiel.new @beispiele_all=@lva.beispiele.order(:datum).accessible_by(current_ability, :show) - @beispiele = @lva.beispiele.not_flag_badquality.not_flag_delete.order(:datum).accessible_by(current_ability, :show) + @beispiele = @lva.beispiele.not_flag_badquality.not_flag_delete.order(:lecturer_id,:datum).accessible_by(current_ability, :show) @beispiele_badQ = @lva.beispiele.flag_badquality.not_flag_delete.order(:datum).accessible_by(current_ability, :show) @beispiele_deleted = @lva.beispiele.flag_delete.order(:datum).accessible_by(current_ability, :show) @toolbar_elements =[] diff --git a/app/views/beispiele/edit.html.erb b/app/views/beispiele/edit.html.erb index 9151086..8ed2cac 100755 --- a/app/views/beispiele/edit.html.erb +++ b/app/views/beispiele/edit.html.erb @@ -1,4 +1,4 @@ -

Editing beispiel

+

Beispiel bearbeiten

<%= notice %>

<%= render 'form' %>