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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
0102cd0bebdafb4828ff20eb140432a4?d=identicon&s=25 thomasalbert (Guest)
on 2009-01-31 10: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
code:

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

Thanks.
Fbd9cb107fe7c941333d6a3488691989?d=identicon&s=25 Ramon Tayag (ramontayag)
on 2009-01-31 12: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 Tayag



On Sat, Jan 31, 2009 at 5:15 PM, thomasalbert
0102cd0bebdafb4828ff20eb140432a4?d=identicon&s=25 thomasalbert (Guest)
on 2009-02-01 05: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.