Re: [Rails] Find URL paramenters from a string
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 Icant get it to look good. Here is what I have right nowputsRack::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 problem is that the first parameter name ... howwhat is the right method for this??--Posted via http://www.ruby-forum.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/16fab75337a0ade592bf314292732426%40ruby-forum.com.For more options, visit https://groups.google.com/groups/opt_out.
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.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home