Description:
fixed msg grammar git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@293 6386c4cd-e34a-4fa8-8920-d93eb39b512e
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r154:3580f3e3f91b - - 2 files changed: 2 inserted, 2 deleted

@@ -122,13 +122,13
122 @problem = nil
122 @problem = nil
123 @submissions = nil
123 @submissions = nil
124 else
124 else
125 @problem = Problem.find_by_name(params[:id])
125 @problem = Problem.find_by_name(params[:id])
126 if not @problem.available
126 if not @problem.available
127 redirect_to :action => 'list'
127 redirect_to :action => 'list'
128 - flash[:notice] = 'Error: submissions for that problem is not available'
128 + flash[:notice] = 'Error: submissions for that problem are not viewable.'
129 return
129 return
130 end
130 end
131 @submissions = Submission.find_all_by_user_problem(@user.id, @problem.id)
131 @submissions = Submission.find_all_by_user_problem(@user.id, @problem.id)
132 end
132 end
133 end
133 end
134
134
@@ -1,9 +1,9
1 class Problem < ActiveRecord::Base
1 class Problem < ActiveRecord::Base
2
2
3 belongs_to :description
3 belongs_to :description
4
4
5 def self.find_available_problems
5 def self.find_available_problems
6 - find(:all, :conditions => {:available => true})
6 + find(:all, :conditions => {:available => true}, :order => "date_added DESC")
7 end
7 end
8
8
9 end
9 end
You need to be logged in to leave comments. Login now