From: Brian Candler Date: 2010-08-04T17:06:55+09:00 Subject: Re: undefined method `debug' for nil:NilClass(NoMethodError Esen Sagynov wrote: > I created very simple AR code to add new record to MySQL table. But I > get " undefined method `debug' for nil:NilClass(NoMethodError)". I think you need to show the full backtrace. This will show not only which line in your sample program triggered the error, but also in which library it occurred. Also describe your platform: which operating system and version? Which version of ruby, and where did you install it from? Which version of active_record? Which version of mysql client library? -- Posted via http://www.ruby-forum.com/.