Re: [Rails] Find URL paramenters from a string

2013-08-08 Thread Dheeraj Kumar
Pass it only the string after the `?` -- Dheeraj Kumar On Thursday 8 August 2013 at 10:59 PM, Renato Co wrote: > I have a string which contain some parameters I want to extract but I > cant get it to look good. Here is what I have right now > > > puts > Rack::Utils.parse_query("http://www.as

[Rails] Find URL paramenters from a string

2013-08-08 Thread Renato Co
I have a string which contain some parameters I want to extract but I cant get it to look good. Here is what I have right now puts Rack::Utils.parse_query("http://www.aspnetpage.com/frmindex?id=5&shelf=111";) {"http://www.aspnetpage.com/frmindex?id"=>"5", "shelf"=>"111"} As you can see my main p