Forum: Ruby on Rails What and where is the method register! in restful authentication?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
thomasalbert (Guest)
on 2009-01-31 11:16
(Received via mailing list)
A newbie question - I am learning restful authentication but I cant
find what or where the method register! is when used in the following

@user.register! if @user && @user.valid?

Ramon T. (Guest)
on 2009-01-31 13:05
(Received via mailing list)
User acts as a state machine.  Transitions automatically get methods
that are named after them with a  "!" at the end.  Look for a
transition called register and it shows from what state to what state
this "register" can occur.

Ramon T.

On Sat, Jan 31, 2009 at 5:15 PM, thomasalbert
thomasalbert (Guest)
on 2009-02-01 06:11
(Received via mailing list)
Thanks Ramon,

Never heard of finite state machines or acts_as_state_machine before,
I have been chasing it on the web - more to learn.
This topic is locked and can not be replied to.