Hello! Sometime ago I ran across a webpage where someone had identified the full callback sequence for an object lifecycle including AASM with it''s :enter and :exit and whatnot callbacks. Unfortunately, I can''t find it and searches don''t seem to help. Does anyone have a reference to a page that shows the callback sequence with Acts As State Machine (the gem)? I think there was a Wiki page on github with this, but I can''t find it. Grrr. Thanks! -Danimal --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Danimal, Usually the best place to look is the actual source itself. http://github.com/omghax/acts_as_state_machine/tree/master/lib/acts_as_state_machine.rb Looks like this is what you are looking for :entering :entered :exited The entering and exiting methods call the @enter and @exit options respectively which are passed in during instantiation. Cheers -- Robert Zotter Zapient, LLC Ruby on Rails Development and Consulting http://www.zapient.com http://www.fromjavatoruby.com On Oct 27, 5:31 pm, Danimal <fightonfightw...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello! > > Sometime ago I ran across a webpage where someone had identified the > full callback sequence for an object lifecycle including AASM with > it''s :enter and :exit and whatnot callbacks. Unfortunately, I can''t > find it and searches don''t seem to help. > > Does anyone have a reference to a page that shows the callback > sequence with Acts As State Machine (the gem)? > > I think there was a Wiki page on github with this, but I can''t find > it. Grrr. > > Thanks! > > -Danimal--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Robert, I appreciate the fast response. Actually, though, there was a page somewhere that showed the FULL lifecycle of a ruby model that goes through before_save, validation, after_save, and all that along with the AASM transitions when the bang (!) character is included and when enters, exits, guards, transitions and such are used. I can practically visualize the page I remember... it was a listing of the order of each of these "steps" (callbacks and such). In other words, it was very similar to the first part of this: http://api.rubyonrails.org/classes/ActiveRecord/Callbacks.html but with the AASM hooks included. It''s just bugging me because I thought I bookmarked the page and I can''t find my bookmark. *sigh* -Danimal On Oct 27, 6:42 pm, Robert Zotter <rzot...-pPleKHUOxhtBDgjK7y7TUQ@public.gmane.org> wrote:> Danimal, > > Usually the best place to look is the actual source itself.http://github.com/omghax/acts_as_state_machine/tree/master/lib/acts_a... > > Looks like this is what you are looking for > :entering > :entered > :exited > > The entering and exiting methods call the @enter and @exit options > respectively which are passed in during instantiation. > > Cheers > > -- > Robert Zotter > Zapient, LLC > Ruby on Rails Development and Consulting > > http://www.zapient.comhttp://www.fromjavatoruby.com > > On Oct 27, 5:31 pm, Danimal <fightonfightw...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hello! > > > Sometime ago I ran across a webpage where someone had identified the > > full callback sequence for an object lifecycle including AASM with > > it''s :enter and :exit and whatnot callbacks. Unfortunately, I can''t > > find it and searches don''t seem to help. > > > Does anyone have a reference to a page that shows the callback > > sequence with Acts As State Machine (the gem)? > > > I think there was a Wiki page on github with this, but I can''t find > > it. Grrr. > > > Thanks! > > > -Danimal--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Ahhh I see. Sorry, Im not familiar with that wiki you are talking about. However I can solve your bookmarking problem if you happen to use Firefox http://www.foxmarks.com/ :) Good luck finding that wiki. -- Robert Zotter Zapient, LLC Ruby on Rails Development and Consulting http://www.zapient.com http://www.fromjavatoruby.com On Oct 27, 5:48 pm, Danimal <fightonfightw...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Robert, > > I appreciate the fast response. Actually, though, there was a page > somewhere that showed the FULL lifecycle of a ruby model that goes > through before_save, validation, after_save, and all that along with > the AASM transitions when the bang (!) character is included and when > enters, exits, guards, transitions and such are used. > > I can practically visualize the page I remember... it was a listing of > the order of each of these "steps" (callbacks and such). > > In other words, it was very similar to the first part of this:http://api.rubyonrails.org/classes/ActiveRecord/Callbacks.html > but with the AASM hooks included. > > It''s just bugging me because I thought I bookmarked the page and I > can''t find my bookmark. *sigh* > > -Danimal > > On Oct 27, 6:42 pm, Robert Zotter <rzot...-pPleKHUOxhtBDgjK7y7TUQ@public.gmane.org> wrote: > > > Danimal, > > > Usually the best place to look is the actual source itself.http://github.com/omghax/acts_as_state_machine/tree/master/lib/acts_a... > > > Looks like this is what you are looking for > > :entering > > :entered > > :exited > > > The entering and exiting methods call the @enter and @exit options > > respectively which are passed in during instantiation. > > > Cheers > > > -- > > Robert Zotter > > Zapient, LLC > > Ruby on Rails Development and Consulting > > >http://www.zapient.comhttp://www.fromjavatoruby.com > > > On Oct 27, 5:31 pm, Danimal <fightonfightw...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Hello! > > > > Sometime ago I ran across a webpage where someone had identified the > > > full callback sequence for an object lifecycle including AASM with > > > it''s :enter and :exit and whatnot callbacks. Unfortunately, I can''t > > > find it and searches don''t seem to help. > > > > Does anyone have a reference to a page that shows the callback > > > sequence with Acts As State Machine (the gem)? > > > > I think there was a Wiki page on github with this, but I can''t find > > > it. Grrr. > > > > Thanks! > > > > -Danimal--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thank you, Robert! I''ll have to try out foxmarks. I suspect that the problem was PEBKAC... i.e. I probably thought "that''s a cool page, I should bookmark it" and for whatever reason did not. Heh. Anyway... anyone else have an inkling about the page/wiki that I''m talking about? Or was it just in a dream? :-) -Danimal On Oct 27, 6:52 pm, Robert Zotter <rzot...-pPleKHUOxhtBDgjK7y7TUQ@public.gmane.org> wrote:> Ahhh I see. Sorry, Im not familiar with that wiki you are talking > about. However I can solve your bookmarking problem if you happen to > use Firefoxhttp://www.foxmarks.com/ :) > > Good luck finding that wiki. > -- > Robert Zotter > Zapient, LLC > Ruby on Rails Development and Consulting > > http://www.zapient.comhttp://www.fromjavatoruby.com > > On Oct 27, 5:48 pm, Danimal <fightonfightw...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Robert, > > > I appreciate the fast response. Actually, though, there was a page > > somewhere that showed the FULL lifecycle of a ruby model that goes > > through before_save, validation, after_save, and all that along with > > the AASM transitions when the bang (!) character is included and when > > enters, exits, guards, transitions and such are used. > > > I can practically visualize the page I remember... it was a listing of > > the order of each of these "steps" (callbacks and such). > > > In other words, it was very similar to the first part of this:http://api.rubyonrails.org/classes/ActiveRecord/Callbacks.html > > but with the AASM hooks included. > > > It''s just bugging me because I thought I bookmarked the page and I > > can''t find my bookmark. *sigh* > > > -Danimal > > > On Oct 27, 6:42 pm, Robert Zotter <rzot...-pPleKHUOxhtBDgjK7y7TUQ@public.gmane.org> wrote: > > > > Danimal, > > > > Usually the best place to look is the actual source itself.http://github.com/omghax/acts_as_state_machine/tree/master/lib/acts_a... > > > > Looks like this is what you are looking for > > > :entering > > > :entered > > > :exited > > > > The entering and exiting methods call the @enter and @exit options > > > respectively which are passed in during instantiation. > > > > Cheers > > > > -- > > > Robert Zotter > > > Zapient, LLC > > > Ruby on Rails Development and Consulting > > > >http://www.zapient.comhttp://www.fromjavatoruby.com > > > > On Oct 27, 5:31 pm, Danimal <fightonfightw...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Hello! > > > > > Sometime ago I ran across a webpage where someone had identified the > > > > full callback sequence for an object lifecycle including AASM with > > > > it''s :enter and :exit and whatnot callbacks. Unfortunately, I can''t > > > > find it and searches don''t seem to help. > > > > > Does anyone have a reference to a page that shows the callback > > > > sequence with Acts As State Machine (the gem)? > > > > > I think there was a Wiki page on github with this, but I can''t find > > > > it. Grrr. > > > > > Thanks! > > > > > -Danimal--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Is this it? http://didcoe.id.au/archives/finite-state-machines-in-rails On Oct 27, 7:55 pm, Danimal <fightonfightw...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Thank you, Robert! I''ll have to try out foxmarks. I suspect that the > problem was PEBKAC... i.e. I probably thought "that''s a cool page, I > should bookmark it" and for whatever reason did not. Heh. > > Anyway... anyone else have an inkling about the page/wiki that I''m > talking about? Or was it just in a dream? > > :-) > > -Danimal > > On Oct 27, 6:52 pm, Robert Zotter <rzot...-pPleKHUOxhtBDgjK7y7TUQ@public.gmane.org> wrote: > > > Ahhh I see. Sorry, Im not familiar with that wiki you are talking > > about. However I can solve your bookmarking problem if you happen to > > use Firefoxhttp://www.foxmarks.com/ :) > > > Good luck finding that wiki. > > -- > > Robert Zotter > > Zapient, LLC > > Ruby on Rails Development and Consulting > > >http://www.zapient.comhttp://www.fromjavatoruby.com > > > On Oct 27, 5:48 pm, Danimal <fightonfightw...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > Robert, > > > > I appreciate the fast response. Actually, though, there was a page > > > somewhere that showed the FULL lifecycle of a ruby model that goes > > > through before_save, validation, after_save, and all that along with > > > the AASM transitions when the bang (!) character is included and when > > > enters, exits, guards, transitions and such are used. > > > > I can practically visualize the page I remember... it was a listing of > > > the order of each of these "steps" (callbacks and such). > > > > In other words, it was very similar to the first part of this:http://api.rubyonrails.org/classes/ActiveRecord/Callbacks.html > > > but with the AASM hooks included. > > > > It''s just bugging me because I thought I bookmarked the page and I > > > can''t find my bookmark. *sigh* > > > > -Danimal > > > > On Oct 27, 6:42 pm, Robert Zotter <rzot...-pPleKHUOxhtBDgjK7y7TUQ@public.gmane.org> wrote: > > > > > Danimal, > > > > > Usually the best place to look is the actual source itself.http://github.com/omghax/acts_as_state_machine/tree/master/lib/acts_a... > > > > > Looks like this is what you are looking for > > > > :entering > > > > :entered > > > > :exited > > > > > The entering and exiting methods call the @enter and @exit options > > > > respectively which are passed in during instantiation. > > > > > Cheers > > > > > -- > > > > Robert Zotter > > > > Zapient, LLC > > > > Ruby on Rails Development and Consulting > > > > >http://www.zapient.comhttp://www.fromjavatoruby.com > > > > > On Oct 27, 5:31 pm, Danimal <fightonfightw...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > > Hello! > > > > > > Sometime ago I ran across a webpage where someone had identified the > > > > > full callback sequence for an object lifecycle including AASM with > > > > > it''s :enter and :exit and whatnot callbacks. Unfortunately, I can''t > > > > > find it and searches don''t seem to help. > > > > > > Does anyone have a reference to a page that shows the callback > > > > > sequence with Acts As State Machine (the gem)? > > > > > > I think there was a Wiki page on github with this, but I can''t find > > > > > it. Grrr. > > > > > > Thanks! > > > > > > -Danimal--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Dusty, That may very well be it. I thought it was a longer list, but maybe I''m just remembering the two lists (new vs. existing) and somehow lumping them together. Thanks for the reference, though! :-) -Danimal On Mon, Dec 1, 2008 at 12:26 PM, dusty <dusty.doris-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Is this it? > > http://didcoe.id.au/archives/finite-state-machines-in-rails > > On Oct 27, 7:55 pm, Danimal <fightonfightw...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> Thank you, Robert! I''ll have to try out foxmarks. I suspect that the >> problem was PEBKAC... i.e. I probably thought "that''s a cool page, I >> should bookmark it" and for whatever reason did not. Heh. >> >> Anyway... anyone else have an inkling about the page/wiki that I''m >> talking about? Or was it just in a dream? >> >> :-) >> >> -Danimal >> >> On Oct 27, 6:52 pm, Robert Zotter <rzot...-pPleKHUOxhtBDgjK7y7TUQ@public.gmane.org> wrote: >> >> > Ahhh I see. Sorry, Im not familiar with that wiki you are talking >> > about. However I can solve your bookmarking problem if you happen to >> > use Firefoxhttp://www.foxmarks.com/ :) >> >> > Good luck finding that wiki. >> > -- >> > Robert Zotter >> > Zapient, LLC >> > Ruby on Rails Development and Consulting >> >> >http://www.zapient.comhttp://www.fromjavatoruby.com >> >> > On Oct 27, 5:48 pm, Danimal <fightonfightw...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> > > Robert, >> >> > > I appreciate the fast response. Actually, though, there was a page >> > > somewhere that showed the FULL lifecycle of a ruby model that goes >> > > through before_save, validation, after_save, and all that along with >> > > the AASM transitions when the bang (!) character is included and when >> > > enters, exits, guards, transitions and such are used. >> >> > > I can practically visualize the page I remember... it was a listing of >> > > the order of each of these "steps" (callbacks and such). >> >> > > In other words, it was very similar to the first part of this:http://api.rubyonrails.org/classes/ActiveRecord/Callbacks.html >> > > but with the AASM hooks included. >> >> > > It''s just bugging me because I thought I bookmarked the page and I >> > > can''t find my bookmark. *sigh* >> >> > > -Danimal >> >> > > On Oct 27, 6:42 pm, Robert Zotter <rzot...-pPleKHUOxhtBDgjK7y7TUQ@public.gmane.org> wrote: >> >> > > > Danimal, >> >> > > > Usually the best place to look is the actual source itself.http://github.com/omghax/acts_as_state_machine/tree/master/lib/acts_a... >> >> > > > Looks like this is what you are looking for >> > > > :entering >> > > > :entered >> > > > :exited >> >> > > > The entering and exiting methods call the @enter and @exit options >> > > > respectively which are passed in during instantiation. >> >> > > > Cheers >> >> > > > -- >> > > > Robert Zotter >> > > > Zapient, LLC >> > > > Ruby on Rails Development and Consulting >> >> > > >http://www.zapient.comhttp://www.fromjavatoruby.com >> >> > > > On Oct 27, 5:31 pm, Danimal <fightonfightw...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> > > > > Hello! >> >> > > > > Sometime ago I ran across a webpage where someone had identified the >> > > > > full callback sequence for an object lifecycle including AASM with >> > > > > it''s :enter and :exit and whatnot callbacks. Unfortunately, I can''t >> > > > > find it and searches don''t seem to help. >> >> > > > > Does anyone have a reference to a page that shows the callback >> > > > > sequence with Acts As State Machine (the gem)? >> >> > > > > I think there was a Wiki page on github with this, but I can''t find >> > > > > it. Grrr. >> >> > > > > Thanks! >> >> > > > > -Danimal > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
This is a bit more verbose. http://blog.methodmissing.com/2006/11/16/beyond-callbacks-for-complex-model-lifecycles/ On Dec 1, 8:54 pm, "Dan Sharp" <fightonfightw...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Dusty, > > That may very well be it. I thought it was a longer list, but maybe > I''m just remembering the two lists (new vs. existing) and somehow > lumping them together. > > Thanks for the reference, though! :-) > > -Danimal > > On Mon, Dec 1, 2008 at 12:26 PM, dusty <dusty.do...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Is this it? > > >http://didcoe.id.au/archives/finite-state-machines-in-rails > > > On Oct 27, 7:55 pm, Danimal <fightonfightw...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> Thank you, Robert! I''ll have to try out foxmarks. I suspect that the > >> problem was PEBKAC... i.e. I probably thought "that''s a cool page, I > >> should bookmark it" and for whatever reason did not. Heh. > > >> Anyway... anyone else have an inkling about the page/wiki that I''m > >> talking about? Or was it just in a dream? > > >> :-) > > >> -Danimal > > >> On Oct 27, 6:52 pm, Robert Zotter <rzot...-pPleKHUOxhtBDgjK7y7TUQ@public.gmane.org> wrote: > > >> > Ahhh I see. Sorry, Im not familiar with that wiki you are talking > >> > about. However I can solve your bookmarking problem if you happen to > >> > use Firefoxhttp://www.foxmarks.com/:) > > >> > Good luck finding that wiki. > >> > -- > >> > Robert Zotter > >> > Zapient, LLC > >> > Ruby on Rails Development and Consulting > > >> >http://www.zapient.comhttp://www.fromjavatoruby.com > > >> > On Oct 27, 5:48 pm, Danimal <fightonfightw...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > >> > > Robert, > > >> > > I appreciate the fast response. Actually, though, there was a page > >> > > somewhere that showed the FULL lifecycle of a ruby model that goes > >> > > through before_save, validation, after_save, and all that along with > >> > > the AASM transitions when the bang (!) character is included and when > >> > > enters, exits, guards, transitions and such are used. > > >> > > I can practically visualize the page I remember... it was a listing of > >> > > the order of each of these "steps" (callbacks and such). > > >> > > In other words, it was very similar to the first part of this:http://api.rubyonrails.org/classes/ActiveRecord/Callbacks.html > >> > > but with the AASM hooks included. > > >> > > It''s just bugging me because I thought I bookmarked the page and I > >> > > can''t find my bookmark. *sigh* > > >> > > -Danimal > > >> > > On Oct 27, 6:42 pm, Robert Zotter <rzot...-pPleKHUOxhtBDgjK7y7TUQ@public.gmane.org> wrote: > > >> > > > Danimal, > > >> > > > Usually the best place to look is the actual source itself.http://github.com/omghax/acts_as_state_machine/tree/master/lib/acts_a... > > >> > > > Looks like this is what you are looking for > >> > > > :entering > >> > > > :entered > >> > > > :exited > > >> > > > The entering and exiting methods call the @enter and @exit options > >> > > > respectively which are passed in during instantiation. > > >> > > > Cheers > > >> > > > -- > >> > > > Robert Zotter > >> > > > Zapient, LLC > >> > > > Ruby on Rails Development and Consulting > > >> > > >http://www.zapient.comhttp://www.fromjavatoruby.com > > >> > > > On Oct 27, 5:31 pm, Danimal <fightonfightw...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > >> > > > > Hello! > > >> > > > > Sometime ago I ran across a webpage where someone had identified the > >> > > > > full callback sequence for an object lifecycle including AASM with > >> > > > > it''s :enter and :exit and whatnot callbacks. Unfortunately, I can''t > >> > > > > find it and searches don''t seem to help. > > >> > > > > Does anyone have a reference to a page that shows the callback > >> > > > > sequence with Acts As State Machine (the gem)? > > >> > > > > I think there was a Wiki page on github with this, but I can''t find > >> > > > > it. Grrr. > > >> > > > > Thanks! > > >> > > > > -Danimal--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Possibly Parallel Threads
- Turning off the layout in ActionMailer?
- ActionMailer Layout on HTML version not Plain Text
- Getting a Time Zone abbreviation from the full name?
- ANNOUNCE: act_as_soft_deletable - new rails plugin for soft deleting / disabling ActiveRecord models
- Overloading and wrapping an association method