>
> if env["PATH_INFO"] =~ /^\/modules\.php\?name=News&file=pdf&sid=(\d*)/
>
PATH_INFO already has the query string stripped off. This works for me in a
quick Rails Metal:
if env["REQUEST_URI"] =~ /^\/test\.php\?foo=bar/
[200, {"Content-Type" => "text/html"}, ["Hello, World!"]]
else
[404, {"Content-Type" => "text/html"}, ["Not Found"]]
end
Cheers,
Andy
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.