Ruby on Rails Thursday, August 8, 2013

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
{"http://www.aspnetpage.com/frmindex?id"=>"5", "shelf"=>"111"}

As you can see my main problem is that the first parameter name ... how
what is the right method for this??

--

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/56AE47CE6CFC459D9867C2D3A85C9A20%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment