Class: UsersController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/users_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject

getting some weird intermittent errors where users are being redirected to ‘/users’ after signup. this is a failsafe last-resort solution



16
17
18
# File 'app/controllers/users_controller.rb', line 16

def index
  redirect_to root_path
end

#showObject



5
6
7
8
9
10
11
12
# File 'app/controllers/users_controller.rb', line 5

def show
  @user = User.find(params[:id])

  respond_to do |format|
    format.html # show.html.erb.bak
    format.xml { render :xml => @user }
  end
end