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

Converting the element resu...

6c452e0114832b067300e23b6f83c8e8 Talk
1
2
3
before_save :titlecase_fields
...

Ruby On ActiveRecord Attributes rej...

by Bobby Uhlenbrock, February 28, 2008 17:46 Star_fullStar_fullStar_full

I hope this makes sense. I ...

6c452e0114832b067300e23b6f83c8e8 Talk
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 Star_fullStar_fullStar_fullStar_fullStar_full

That formatting didn't come...

6c452e0114832b067300e23b6f83c8e8 Talk