1 2 3
xml = REXML::Document.new(data) artists = xml.elements['//artists'].to_a.first(5).collect { |a| ["name", a.elements['name'].text] }
Ruby On cleaner way to limit result...
by Bobby Uhlenbrock,
July 15, 2008 01:38
1 2 3
before_save :titlecase_fields
...
Ruby On ActiveRecord Attributes rej...
by Bobby Uhlenbrock,
February 28, 2008 17:46
I hope this makes sense. I ...
1 2 3
def squarebutton (name, options = {}, html_options = {}, *parameters_for_method_reference) newclass = 'squarebutton' ...
Ruby On Adding default html option ...
by Bobby Uhlenbrock,
February 27, 2008 21:38
That formatting didn't come...

Converting the element resu...