Assume that at some point in the user''s processing we come to a page in which the user is to select from one of several choices that will then determine which processing will happen on the next page ... perhaps putting up a bus route map if she selects "bus" and a train schedule if she selects "train". What RESTful verb should I use to indicate this kind of choice? Show? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
2010/1/19 Ralph Shnelvar <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>:> Assume that at some point in the user''s processing we come to a page in > which the user is to select from one of several choices that will then > determine which processing will happen on the next page ... perhaps > putting up a bus route map if she selects "bus" and a train schedule if > she selects "train". > > What RESTful verb should I use to indicate this kind of choice? Show?Possibly a choices controller with action show as you suggest. Colin -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
Colin Law wrote:> 2010/1/19 Ralph Shnelvar <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>: >> Assume that at some point in the user''s processing we come to a page in >> which the user is to select from one of several choices that will then >> determine which processing will happen on the next page ... perhaps >> putting up a bus route map if she selects "bus" and a train schedule if >> she selects "train". >> >> What RESTful verb should I use to indicate this kind of choice? �Show? > > Possibly a choices controller with action show as you suggest.I''m not sure a separate controller is called for. In some cases it may make more sense to do show?transport=train , or to simply define nonstandard REST actions bus and train. Remember, the 7 basic REST actions are merely convention. If they do not map well to your resources, there is nothing wrong or unRESTful with defining custom actions.> > ColinBest, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. --0015175cd162eb177e047d8823f0 Content-Type: text/plain; charset=ISO-8859-1 -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. --0015175cd162eb177e047d8823f0--
Colin Law wrote:> 2010/1/19 Ralph Shnelvar <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>: >> Assume that at some point in the user''s processing we come to a page in >> which the user is to select from one of several choices that will then >> determine which processing will happen on the next page ... perhaps >> putting up a bus route map if she selects "bus" and a train schedule if >> she selects "train". >> >> What RESTful verb should I use to indicate this kind of choice? �Show? > > Possibly a choices controller with action show as you suggest. > > ColinColin, thank you. Can you point me at what a "choices controller" looks like? Ralph -- Posted via http://www.ruby-forum.com/. --000325558e166ce5a6047d8a78af Content-Type: text/plain; charset=ISO-8859-1 -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. --000325558e166ce5a6047d8a78af--
On Tue, Jan 19, 2010 at 12:39 PM, Ralph Shnelvar <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote:> Colin Law wrote: > > 2010/1/19 Ralph Shnelvar <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>: > >> Assume that at some point in the user''s processing we come to a page in > >> which the user is to select from one of several choices that will then > >> determine which processing will happen on the next page ... perhaps > >> putting up a bus route map if she selects "bus" and a train schedule if > >> she selects "train". > >> > >> What RESTful verb should I use to indicate this kind of choice? �Show? > > > > Possibly a choices controller with action show as you suggest. > > > > Colin > > Colin, thank you. > > Can you point me at what a "choices controller" looks like? > > Ralph > >Ralph, you can look at a web page as being the current state and the links on page can represent the transitions between your states (i.e. web pages). Thus, in the past, I have created wizards which used an underlying state machine which worked out well. Finally, Mike Hagedorn wrote recipe 16 in "Advanced Rails Recipes" which demonstrates the usage of the acts_as_state_machine gem. Good luck, -Conrad> -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > > >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.