20 Jul '12, 4am

Active Record <3 blocks

Карлос Антонио (Carlos Antônio) из небезызвестной Plataformatec написал отличную статью о том, как можно использовать блоки при вызове некоторых методов Active Record. Например, вместо такого подхода: User.new.tap do |user| user.name = "John Doe" user.username = "john.doe" user.password = "john123" end Можно, опустив tap , написать так: User.new do |user| user.name = "John Doe" user.username = "john.doe" user.password = "john123" end Хотите больше примеров? Читайте статью Active Record loves blocks

Full article: http://rubyflow.ru/items/1321

Tweets

Video: Yoga expert & author of "The Athlete's G...

running.competitor.com 20 Jul '12, 4pm

In this video, Sage Rountree, author of The Runner’s Guide To Yoga, explains the benefits of active recovery and how it ca...

active record reputation system à la @railscasts

active record reputation system à la @railscasts

railscasts.com 22 Jul '12, 7pm

A number of Haikus have already been added to our application and we’d like users to be able to vote for them by either vo...

Solar Acquisitions Doubled to Record $10.8 Billion

Solar Acquisitions Doubled to Record $10.8 Billion

renewableenergyworld.com 19 Jul '12, 3pm

A record 3.9 gigawatts of projects changed hands last year, up 122 percent from 2010, the London-based consultant said in ...

46 years ago today Jim Ryun lowered the mile wo...

runnerspace.com 17 Jul '12, 2pm

Results - IAAF World Junior Championships What's next for DyeStat? Results - London Diamond League - Aviva London Grand Pr...

Evan Jager Sets U.S. Steeplechase Record

news.runnersworld.com 21 Jul '12, 12am

By Peter Gambaccini Photo by Victah Sailer It was, as Olympic Trials winner Evan Jager explained, "my first international ...

The Athletics Weekly 3 volume Series, Reviewed ...

runblogrun.com 20 Jul '12, 3am

Athletics Weekly 3 Volume Series By Jeff Benjamin If you talk with any veteran Track & Field/ Running coach, athlete or af...

@EvanJager Evan Jager breaks American Steeplech...

flotrack.org 20 Jul '12, 9pm

Read more about Jager's Record setting run and what it means for London. http://www.UniversalSports.com 2012, Monaco, Mont...

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...

Scott flirts with major history, ties Open cour...

golf.com 19 Jul '12, 2pm

LYTHAM ST. ANNES, England (AP) -- Adam Scott had a chance at history. He gladly settled for tying a course record. Scott e...

Adam Scott ties course record with 64 at Britis...

golf.com 19 Jul '12, 2pm

LYTHAM ST. ANNES, England (AP) -- Adam Scott had a chance at history. He gladly settled for tying a course record. Scott e...

Jager Bomb: Evan Jager broke the American recor...

letsrun.com 20 Jul '12, 8pm

Prior to the 2012 Herculis Monaco track and field meet , we called 23-year old American Evan Jager "the most exciting US p...

You seriously haven't watch Jager break the Ame...

flotrack.org 20 Jul '12, 10pm

Read more about Jager's Record setting run and what it means for London. http://www.UniversalSports.com 2012, Monaco, Mont...

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...

Back to Brasschaat - Alan Webb 5 year anniversa...

flotrack.org 21 Jul '12, 7am

Five years ago today, Alan Webb shattered the American record in the mile, running 3:46.91 to shatter Steve Scott's mark t...

@ykwyuta

guides.rubyonrails.org 16 Jul '12, 12am

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