I have a from that will have a status, "approved", "in process",denied"... and such. What is the best approach? Status table, One row with each column status type? The form will have only one status so I will have to manage making sure all columns that are not "true" will be false. If I set it up so I populate the table with each row being a status type then it will be easier to implement. I could have a drop down to change status dynamically.. Any ideas? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Chris Habgood wrote:> I have a from that will have a status, "approved", "in > process",denied"... and such. > > What is the best approach?If a record can only have one status at a time, then it only needs one status field. Consider using aasm -- it''s meant for exactly this purpose. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Marnen Laibow-Koser wrote:> Chris Habgood wrote: >> I have a from that will have a status, "approved", "in >> process",denied"... and such. >> >> What is the best approach? > > If a record can only have one status at a time, then it only needs one > status field. > > Consider using aasm -- it''s meant for exactly this purpose.This is what Marnen suggested, which I concur: http://github.com/rubyist/aasm/tree/master -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
OK, cool. thanks, looking now. On Apr 14, 4:05 pm, Robert Walker <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Marnen Laibow-Koser wrote: > > Chris Habgood wrote: > >> I have a from that will have a status, "approved", "in > >> process",denied"... and such. > > >> What is the best approach? > > > If a record can only have one status at a time, then it only needs one > > status field. > > > Consider using aasm -- it''s meant for exactly this purpose. > > This is what Marnen suggested, which I concur:http://github.com/rubyist/aasm/tree/master > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---