Hello! I use a "format" parameter in my application for internal calculations. But Rails catches it and uses for view name. I mean, if I go to url: myapp.com/foo/?format=xml Rails tries to show me index.xml.erb view, but I don''t want this! I want the application to continue showing index.html.erb template. How can I do this? 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 -~----------~----~----~----~------~----~------~--~---
wrong url? check "myapp.com/foo.xml" On 11 сент, 14:50, Konstantin <rasf...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello! > > I use a "format" parameter in my application for internal calculations. > But Rails catches it and uses for view name. > I mean, if I go to url: > myapp.com/foo/?format=xml > Rails tries to show me index.xml.erb view, but I don''t want this! I want > the application to continue showing index.html.erb template. > How can I do this? > > 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 11 сент, 15:06, cheef <ch...-cmBhpYW9OiY@public.gmane.org> wrote:> wrong url? > check "myapp.com/foo.xml"No, no, the task was exactly reverse. I want to see normal html template (and not xml), but if I pass "format=xml" as a query parameter, Rails will try to display xml template (which doesn''t exist) How to avoid this? I want html to be displayed always and don''t depent on query parameters. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---