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.
on 2009-01-31 10:16
on 2009-01-31 12:05
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
on 2009-02-01 05:11
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.