diff options
| author | mo k <mo@mokhan.ca> | 2012-09-10 21:16:54 -0600 |
|---|---|---|
| committer | mo k <mo@mokhan.ca> | 2012-09-10 21:16:54 -0600 |
| commit | 157c63e34ead02ed0ba919e2bb1feacef10d7a61 (patch) | |
| tree | 76ba156241bd8d37ec0bd0b9c04bd9bea70c313b /app/controllers/tutorials_controller.rb | |
| parent | b5883cac7e0eff94c2edfc4dc0ac933fc8e857d5 (diff) | |
fix the tutorial specs.
Diffstat (limited to 'app/controllers/tutorials_controller.rb')
| -rw-r--r-- | app/controllers/tutorials_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/tutorials_controller.rb b/app/controllers/tutorials_controller.rb index 2ebab43f..649305f1 100644 --- a/app/controllers/tutorials_controller.rb +++ b/app/controllers/tutorials_controller.rb @@ -21,7 +21,7 @@ class TutorialsController < ApplicationController @tutorial = current_user.tutorials.create(params[:tutorial]) respond_to do |format| if @tutorial.save - format.html { redirect_to( '/tutorials/' ) } + format.html { redirect_to( '/tutorials' ) } else flash[:error] = @tutorial.errors.full_messages format.html { render :action => "new" } |
