Class: Fcid::UsersController

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

Instance Method Summary collapse

Instance Method Details

#createObject



17
18
19
20
21
22
23
24
# File 'app/controllers/fcid/users_controller.rb', line 17

def create
  @user = Fcid::User.new params[:fcid_user]
  if @user.save
    # it will render an create.html.erb
  else
    render :action=>"new"
  end
end

#destroyObject



14
15
# File 'app/controllers/fcid/users_controller.rb', line 14

def destroy
end

#newObject

Be sure to include AuthenticationSystem in Application Controller instead



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

def new
  @user = Fcid::User.new
  respond_to do |format|
    format.html
    format.text do
      render :partial=>"ajax_new"
    end
  end
end