mirror of https://github.com/fspc/BikeShed-1.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
448 B
35 lines
448 B
12 years ago
|
class UsersController < AuthenticatedController
|
||
|
expose(:user)
|
||
|
expose(:users) { User.order('id').paginate(:page => params[:page]) }
|
||
|
|
||
|
def index
|
||
|
end
|
||
|
|
||
|
def show
|
||
|
end
|
||
|
|
||
|
def new
|
||
|
end
|
||
|
|
||
|
def create
|
||
|
if user.save
|
||
|
redirect_to user
|
||
|
else
|
||
|
render :new
|
||
|
end
|
||
|
end
|
||
|
|
||
|
def update
|
||
|
if user.save
|
||
|
redirect_to user
|
||
|
else
|
||
|
render :edit
|
||
|
end
|
||
|
end
|
||
|
|
||
|
def destroy
|
||
|
user.destroy
|
||
|
redirect_to bikes_url
|
||
|
end
|
||
|
end
|