app/controllers/users_controller.rb
#Create new user based on attributes entered in signup page
Create new user based on attributes entered in signup page
Create new user based on attributes entered in signup page
def create
  	@user = User.new(user_params)
  	if @user.save
  		@user.send_activation_email
  		flash[:info] = "Please check your email to activate your account"
  		redirect_to root_url
  	else
  		render 'new'
  	end
  end
def create @user = User . new ( user_params ) if @user . save @user . send_activation_email flash [ :info ] = "Please check your email to activate your account" redirect_to root_url else render 'new' end end
Create new user based on attributes entered in signup page
Create new user based on attributes entered in signup page