# Rails params-hash. jQuery have this?

**URL:** <https://www.ruby-forum.com/t/rails-params-hash-jquery-have-this/174231>\
**Category:** Rails\
**Created:** [August 23, 2009, 12:46am UTC](https://www.ruby-forum.com/t/rails-params-hash-jquery-have-this/174231 "2009-08-23T00:46:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Audrey\_A\_Lee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f475e1/32.png) [@Audrey\_A\_Lee](https://www.ruby-forum.com/u/Audrey_A_Lee)\
**Post date:** [August 23, 2009, 12:46am UTC](https://www.ruby-forum.com/t/rails-params-hash-jquery-have-this/174231/1 "2009-08-23T00:46:24Z")

</div>

Hello,

Rails has a hash named “params” which contains information from my  
current URL.

Does jQuery have something like params?

Related question:

What is the jQuery-way of getting data out of the current URL?

-Audrey

---

<div class="post-metadata">

**Author:** ![Audrey\_A\_Lee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f475e1/32.png) [@Audrey\_A\_Lee](https://www.ruby-forum.com/u/Audrey_A_Lee)\
**Post date:** [August 23, 2009, 12:58am UTC](https://www.ruby-forum.com/t/rails-params-hash-jquery-have-this/174231/2 "2009-08-23T00:58:42Z")

</div>

On Aug 22, 2009, at 3:13 PM, Audrey A Lee wrote:

> What is the jQuery-way of getting data out of the current URL?
> 
> -Audrey

The querystring is stuffed into the params hash by rails. So  
[http://my/fine/url?something=anything](http://my/fine/url?something=anything)

shows up in your controller as:

params  
=\> {‘something’ =\> ‘anything’}

Your second question is not clear to me. What data is in the current  
URL?

BTW: The jQuery Google Group is very helpful for getting jQuery-  
specific questions answered.
