I’ve decided to add user authentication to my application using
restful_authentication plugin. It has generated Account model with
such fragment of code:
def create
logout_keeping_session!
@account = Account.new(params[:account])
@account.register! if @account && @account.valid?
success = @account && @account.valid?
if success && @account.errors.empty?
redirect_back_or_default(’/’)
flash[:notice] = “Thanks for signing up! We’re sending you an
email with your activation code.”
else
flash[:error] = “We couldn’t set up that account, sorry.
Please try again, or contact an admin (link is above).”
render :action => ‘new’
end
end
Everything is clear to me except @account.register! method. I cannot
find any documentation about it. Where should I seek?