Skip to content
Browse files

Fixed bug where problem was nil

  • Loading branch information...
1 parent 0ccbdef commit 4ae8718e5ee1505f39581c44d61ef63bdfb2c341 David Davis committed Mar 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/solutions_controller.rb
View
2 app/controllers/solutions_controller.rb
@@ -39,8 +39,8 @@ def edit
# POST /solutions.json
def create
@solution = Solution.new(params[:solution])
+ @solution.problem = @problem = Problem.find(params[:problem_id])
@solution.user = current_user
- @problem = @solution.problem
respond_to do |format|
if run_and_save_solution(@solution)

0 comments on commit 4ae8718

Please sign in to comment.
Something went wrong with that request. Please try again.