26 Jul '12, 9pm

Hidden gems in ActiveSupport: squish (cleanup string): and strip_heredoc (remove indent):

module ActiveSupport module Dependencies mattr_accessor :warnings_on_first_load mattr_accessor :history mattr_accessor :loaded mattr_accessor :mechanism mattr_accessor :load_paths mattr_accessor :load_once_paths mattr_accessor :autoloaded_constants mattr_accessor :explicitly_unloadable_constants mattr_accessor :logger mattr_accessor :log_activity mattr_accessor :constant_watch_stack mattr_accessor :constant_watch_stack_mutex end end

Full article: http://edgeguides.rubyonrails.org/active_support_core_ext...

Tweets

Hidden gems in ActiveSupport: squish (cleanup s...

edgeguides.rubyonrails.org 26 Jul '12, 9pm

module ActiveSupport module Dependencies mattr_accessor :warnings_on_first_load mattr_accessor :history mattr_accessor :lo...

Facebook Refuses to Remove Fan Pages for Colorado Killer

Facebook Refuses to Remove Fan Pages for Colora...

searchenginejournal.com 26 Jul '12, 12pm

In the days following the tragic Aurora, Colorado killings, approximately 30 Facebook pages that pay tribute to the killer...

Active Record Deep Dive: If you’re new to Rails...

rubyflow.com 27 Jul '12, 4pm

If you’re new to Rails and Active Record, or you’ve been using them for some time, there are likely methods you’ve been ov...

Morocco Travel | Where to Stay, Eat & Discover Hidden Gems

Morocco Travel | Where to Stay, Eat & Discover ...

justluxe.com 20 Jul '12, 10pm

Morocco is a country steeped rich in Arab culture. As an American, if you don’t have much experience with Arab countries, ...

Ruby on Rails Guides: Active Record Query Inter...

guides.rubyonrails.org 28 Jul '12, 11am

But this approach becomes increasingly impractical as the table size increases, since User.all.each instructs Active Recor...