This is not how Rails works. You could write some middle-sized product or something that goes beyond the scope, but is probably not worth your time. Rails is (or at least the focus) on developer productivity. Just do it like this:
titles = Book.find( :all ).map( &:title )
As for performance issues (assuming your site is growing), you just start caching this result.
source share