Permalink
Browse files

Fixed a small problem with trying to create an invalid Assigment.

  • Loading branch information...
1 parent 1361702 commit 75839b4d9c4417fad31114e17f857c550e9f363a @rnhurt committed Aug 26, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 app/controllers/assignments_controller.rb
@@ -34,7 +34,8 @@ def create
flash[:notice] = "Assignment '#{@assignment.name}' was created successfully."
redirect_to :action => :show, :id => @assignment.course_term.id
else
- render :action => :edit
+ @course_term = CourseTerm.find(@assignment.course_term_id)
+ render :action => "edit"
end
end

0 comments on commit 75839b4

Please sign in to comment.