Ruby On Query String to Hash

by zoopzoop, July 13, 2008 07:03

Good catch, reima!

Eed31d42c365b4216a6551c7bef2437d Talk
class Page < ActiveRecord::Base

def assigned_widgets=(string)
...

Ruby On Recreating a list with acts...

by zoopzoop, July 10, 2008 15:15

Save on more line and one v...

Eed31d42c365b4216a6551c7bef2437d Talk
require 'uri'
uri = URI.parse('http://www.mydomain.com/search?q=foo&bar=stick&who=you')
uri_params = uri.query.split('&').inject({}) do |hsh, i| kv = i.split('='); hsh[kv[0]] = kv[1]; hsh end
...

Ruby On Query String to Hash

by zoopzoop, July 10, 2008 15:09 Star_fullStar_full

It is this you are trying t...

Eed31d42c365b4216a6551c7bef2437d Talk