Hi,
I''ve hit an issue that has me a little surprised - basically, when I
specify both a format and additional parameters in my URL, via something
like:
/jobs.txt?q=Up
then params[:format] is set not to "txt" as I would expect, but to
"txt?q=Up". This in turn breaks my respond_to logic, which works fine
until additional parameters are added to the request URL.
I''ve simplified my routes.rb to the most basic case:
ActionController::Routing::Routes.draw do |map|
map.resources :jobs
end
It seems like this should be a fairly common scenario, so maybe there is
another way I ought to be tackling this? Essentially, what I am trying
to do is allow the list of resources that would be returned from a
request to /jobs.txt to be filtered to only include those starting with
the specified value...
Any suggestions?
Cheers,
Adam
--
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
-~----------~----~----~----~------~----~------~--~---