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
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
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
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs