I'm not sure if this is where to post this, but i cannot find much
information/support for acts_as_state_machine.
I have a Friendship model which implements acts_as_state_machine. I
have an :initial state of :pending, but i would like to create a
Friendship model and save it directly with :accepted status.
I have tried Friendship.create(:state => "accepted") and Friendship.new,
friendship.state = "accepted", .save!...but neither have worked. The
only way i can accomplish this is by doing:
friendship = Friendship.create
friendship.state = "accepted"
However, i do not like this since it has an unnecessary DB hit. Anybody
know how i can do this?