On Thu, Oct 1, 2009 at 4:58 PM, doug <ddjol...@gmail.com> wrote: > > I understand that the default Rails routing matches URLs with the > form: > > /controller/action/id.format >
Have you read this? http://guides.rubyonrails.org/routing.html > Default values exist for each of the parts to the right of the > controller. I also understand that the default format is html. So, > for example, the URL: > > /blog/read/23 > > would route a request to the 'read' action of the 'blog' controller, > set the :id param to '23', and and render the html view 'read.rhtml' > > Now, if the URL were altered to: > > /blog/read/23.csv > > Apparently something different happens; but, I'm not at all clear on > exactly what. Does this mean that I should setup a read.csv view to > render the document in csv, or what? > > I don't seem to have enough basic knowledge to get started > understanding this. I would really appreciate it if someone could > help me get started off in the right direction. Thanks for any input. > > ... doug > -- Leonardo Mateo. There's no place like ~ --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---