Class: UsersController
- Inherits:
-
InheritedResources::Base
- Object
- InheritedResources::Base
- UsersController
- Defined in:
- app/controllers/users_controller.rb
Instance Method Summary collapse
- #create ⇒ Object
-
#destroy ⇒ Object
Not supported yet.
- #index ⇒ Object
-
#new ⇒ Object
Supported through devise.
Instance Method Details
#create ⇒ Object
19 |
# File 'app/controllers/users_controller.rb', line 19 def create; end |
#destroy ⇒ Object
Not supported yet
21 |
# File 'app/controllers/users_controller.rb', line 21 def destroy; end |
#index ⇒ Object
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 |
#new ⇒ Object
Supported through devise
19 |
# File 'app/controllers/users_controller.rb', line 19 def new; end |