Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed syntax error

  • Loading branch information...
commit b62e54b6d5bf3ef6e17f81496265b766d37a9e47 1 parent ad27454
@ksylvest authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 test/dummy/app/controllers/users_controller.rb
View
6 test/dummy/app/controllers/users_controller.rb
@@ -2,8 +2,8 @@ class UsersController < ApplicationController
respond_to :html, :js
- before_filter :authenticate!, only: [:edit, :update]
- before_filter :deauthenticate!, only: [:new, :create]
+ before_filter :authenticate!, :only => [:edit, :update]
+ before_filter :deauthenticate!, :only => [:new, :create]
# GET /user/new
def new
@@ -40,7 +40,7 @@ def update
flash[:notice] = 'User update successful.' if @user.valid?
flash[:error] = 'User update failed.' if @user.invalid?
- respond_with(@user, :location restore(:default => root_path))
+ respond_with(@user, :location => restore(:default => root_path))
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.