require 'json'

class BlankSlate
...

Ruby On Handling reserved word coll...

by Dragan Cvetinovic, June 21, 2010 14:51

For instance :

36ad787d1b5306e65e89b441e0cade8f Talk
require 'rubygems'
require 'hpricot'
require 'open-uri'
...

Ruby On Can I do this while loop in...

by Dragan Cvetinovic, June 18, 2010 13:40 Star_fullStar_fullStar_fullStar_fullStar_full

The collect(&:inner_html) ...

36ad787d1b5306e65e89b441e0cade8f Talk
params = {:a => "a", :b => "thisisb", :c => "c", :d => "thiswasb", :e => "34" }

foo Hash[*(params.keys & [:a, :b, :c]).inject([]){|a, k| a << k << params[k]}]
...

Ruby On Passing hashed arguments

by Dragan Cvetinovic, June 18, 2010 11:26

I like the brevity of the s...

36ad787d1b5306e65e89b441e0cade8f Talk