I don’t know what the .to_s(:db) is about, but I read that find_all is
deprecated in favor of find(:all). Find all (in either manifestation)
returns a hash whereas .to_s tries to convert some other type of element
into a string.
So what exactly are you trying to do? Being relatively new to Ruby and
Rails myself, I can attest to how arcane the syntax seems at first.
There are a few very good books about Rails and Ruby that explain the
rationale behind the setup. Search this forum for recommendations,
because different books and tutorials suit different audiences. The
books I’ve found most helpful so far (coming from a desktop db
development environment) are:
Agile Web D. with Rails (2nd edition is now out)
Ruby for Rails
Believe me, it’s worth burying yourself in a good introductory book like
this for a few days (or more…). It’ll save you what the book costs
many many times over in time-wasting frustration.