Skip to content

Commit

Permalink
Issue #208 Fixing indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdullRahman ElHusseini committed Apr 23, 2014
1 parent 3230065 commit 77dc5f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tutor/app/controllers/problems_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def create
begin
if p.save
redirect_to :action => "edit", :id => p.id
else
else
flash.keep[:notice] = "Problem is missing paramaters"
redirect_to :back
end
Expand Down Expand Up @@ -119,7 +119,7 @@ def update
# [Edit Problem - 4.5]
# Checks if problem is complete or not by checking the number of test cases and answers
# Parameters:
# problem_id: ID of the problem being edited
# problem_id: ID of the problem being edited
# Returns: On success redirects to the track page, on failure redirects to the edit page
# Author: Abdullrahman Elhusseny
def done
Expand Down Expand Up @@ -148,8 +148,8 @@ def done
# [Add Problem - 4.4]
# Passes the input of the form as paramaters for create action to use it
# Parameters:
# title: problem's title
# description: problem's description
# title: problem's title
# description: problem's description
# Returns: params to create action
# Author: Abdullrahman Elhusseny
private
Expand Down

0 comments on commit 77dc5f0

Please sign in to comment.