31 Mar '12, 10pm

Railscasts - Rails 2.3 Extras:

# find in batches Product.count Product.find_in_batches(:batch_size => 10) do |batch| puts "Products in batch: #{batch.size}" end Product.each(:batch_size => 10) do |product| puts product.name end # scoped_by Product.scoped_by_price(4.99).size Product.scoped_by_price(4.99).first Product.scoped_by_price(4.99).scoped_by_category_id(3).first # try method Product.find_by_price(4.99).name Product.find_by_price(4.95).name Product.find_by_price(4.95).try(:name) Product.find_by_price(4.99).try(:name)

Full article: http://railscasts.com/episodes/152-rails-2-3-extras

Tweets

Walken on Rails

rubyflow.com 01 Apr '12, 8pm

Walken on Rails Posted by laserlemon on April 01, 2012 — 1 comment For quite a while now, Collective Idea has been working...

Tiffany Bows Cardigans + Extras from Backorders!

Tiffany Bows Cardigans + Extras from Backorders!

lilypirates.livejournal.com 01 Apr '12, 2pm

If you do not receive an email reply from us within 24 hours, it means the item is all pending/sold. Please do check back ...

Am I missing something or is this page laughabl...

guides.rubyonrails.org 01 Apr '12, 2am

The very first parameter, a string, is the text of the link which appears on the page. The second parameter, the options h...

“Rails 3.2.3ではwhitelist_attributesの設定が必要 - Ruby...

oiax.jp 01 Apr '12, 10am

Rails 3.2.3ではwhitelist_attributesの設定が必要 この記事は『改訂新版 基礎Ruby on Rails』の読者サポートのために書かれたものです。 読者サポートページに戻る 2012年3月30日に公開されたRails...

omgbloglol - Improved validations in Rails 3:

omgbloglol.com 30 Mar '12, 8am

Improved validations in Rails 3 Quite sorry about not getting another post up sooner; I’ve been very busy lately with a fe...

Railscasts - jQuery:

railscasts.com 31 Mar '12, 2pm

How do you use jQuery with Rails? In this episode I redo episode #43 using jQuery instead of Prototype/RJS.

Rails 3.2.3 was released!!!

weblog.rubyonrails.org 30 Mar '12, 10pm

Rails 3.2.3 also introduces a new option that allows you to control the behavior of remote forms when it comes to authenti...

Video: Galaxy S II with ICS and Android 2.3 Com...

soyacincau.com 29 Mar '12, 11am

owners here in Malaysia wait anxiously for the Android 4.0 update to be available, let’s take a look at the enhancements t...

Rails 3.2.3.rc2 was released

weblog.rubyonrails.org 29 Mar '12, 4pm

Rails 3.2.3 introduced a new option that allows you to control the behavior of remote forms when it comes to authenticity_...

Rails isn't for beginners

rubyflow.com 03 Apr '12, 7pm

Rails isn't for beginners Posted by stephenballnc on April 03, 2012 — 0 comments I've just written a post on Rake Routes: ...

Sam Ruby: Keeping it on the Rails

intertwingly.net 28 Mar '12, 9pm

The previous error that was caught was connection pool of new applications have size 1 . This demonstrates the unique valu...

Ruby on Rails Guides: Rails Form helpers:

guides.rubyonrails.org 28 Mar '12, 5am

Forms in web applications are an essential interface for user input. However, form markup can quickly become tedious to wr...

bullet 2.3.0 released

rubyflow.com 25 Mar '12, 2pm

bullet 2.3.0 released Posted by flyerhzm on March 25, 2012 — 0 comments bullet is a gem to help you increase your applicat...

14 Bare Minimum Security Checks Before Releasin...

railsinside.com 30 Mar '12, 1am

When you upload your latest app to a production Web server and open it up to the world, you're really throwing your app to...

master slave replication in rails

rubyflow.com 28 Mar '12, 1pm

master slave replication in rails Posted by flyerhzm on March 28, 2012 — 0 comments I just created a new post master slave...