In Blinksale, the settings link in the top right takes you to the / account url. From there, the side nav takes you to /account;templates / account;reminders , etc.>From what I''ve read, ;templates and ;reminders are custom rest actionsfor a given resource. But the controller (account) does not appear to be of rest nature. Also, when creating a new account, the url is / firms/new . When in /account controller it is also accessing the Firm model/object. Anyone know what I''m getting wrong here? Thanks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Anyone? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
It is very likely that when you see a route that looks like account;templates that the app is exposing "templates" as a RESTful custom collection action: map.resources :account, :collection => { :templates => :any } It''s sounds like with Blinksale the Firm model is an account that the Blinksale customer signs up for and the Account model is the firm''s clients. If this is correct then their routing scheme makes sense. When you signup for an account with Blinksale you are creating a firm with the route: firm/new. This is RESTful too so I don''t think you are getting anything wrong here... -- Zack Chandler http://depixelate.com On 3/18/07, jko170 <jko170-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Anyone? > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Thank you for your reply. Isn''t collection a collections of resources/ objects? It looks like to me that all those templates when submitted are issuing the http verb of put, which is updating one Firm object. Also, when you go to change your plan here is the url: https://myname.blinksale.com/firms/50329;change_plan?plan=Silver So it appears to me that its kind of like a masking effect. / account;template is a mask for /firms/50329;template which makes sense because their users don''t need to see the latter url. If all of this is the case, how would one create that url scheme in the routes file? I remember I tried something like this but it didn''t work: map.resources :accounts, :member => {:contact_info => :put, :thank_you => :put } map.account ''/account'', :controller => ''accounts'' I thought this might generate /account;contact_info --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---