Class: UsersController

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

Instance Method Summary collapse

Instance Method Details

#createObject



19
# File 'app/controllers/users_controller.rb', line 19

def create; end

#destroyObject

Not supported yet



21
# File 'app/controllers/users_controller.rb', line 21

def destroy; end

#indexObject



6
7
8
9
10
11
12
13
14
15
16
# File 'app/controllers/users_controller.rb', line 6

def index
  @users = User.alphabetic.
                letter(params[:letter]).
                search(params[:search]).
                tagged_with(params[:tag]).
                page(params[:page]).per(10)

  index! do |format|
    format.html { render :layout => (user_signed_in? ? 'application' : 'frontpage') }
  end
end

#newObject

Supported through devise



19
# File 'app/controllers/users_controller.rb', line 19

def new; end