I'm testing Rails 3 beta 4 on Ruby 1.9.2-head, and when I start a
console and do:

 Game.first.to_sql

I get this error:

  ArgumentError: wrong number of arguments (0 for 1)


I know it can find the Game record, because when I type:

  Game.first

it returns:

=> #<Game id: 1, name: "Galaga", created_at: "2010-06-19 11:02:37",
updated_at: "2010-06-19 11:02:37">


What am I missing? I just want to make the to_ql work in a very simple
case.
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to