Re: [Rails] Re: What Model Association?
On 5 April 2012 01:54, Mark P. <lists@ruby-forum.com> wrote:
> I just realized CarWashStation might be misleading. Each station refers
> to one "activity location" that the car mush move through per wash. A
> few example instances might be:
>
> - Soap Application Station
> - Bristle Brush Station
> - Wax Station
> - Dry Station
That sounds like a CarWashing should have a state-machine to manage
transitions between stations (rather than stations being models of
their own).
You could have sub-types of CarWashing that would provide different
combinations of states (for the simple Wash'n'Wax to the full-on
hand-finished-chamois-wipe-down-with-under-body-jet-wash).
--
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@googlegroups.com.
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home