unknownuser
unknownuser

Reputation: 800

Is it possible to get the raw param string in rails?

Given the following url:

http://foo.com?bar=1&wee=2

What is the quickest way to get the raw param part of the url from an action?

i.e.

?bar=1&wee=2

Upvotes: 9

Views: 4162

Answers (1)

capotej
capotej

Reputation: 2971

Sure, just use request.query_string from within your controller

Upvotes: 21

Related Questions