From: Brian Candler Date: 2009-07-29T19:07:11+09:00 Subject: Re: No Method Error Kyle Thomas wrote: > I'm very new to ruby so for all I know this could be ridiculously easy. > Thank you in advance for any and all suggestions! > > Here is the error: > /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/base.rb:2962:in > `log_protected_attribute_removal': undefined method `debug' for > nil:NilClass (NoMethodError) That means you are trying to call nil.debug Just open the file and look at the source line: logger.debug "WARNING: Can't mass-assign ... " So logger is nil here. You probably want something like: ActiveRecord::Base.logger = Logger.new or perhaps ActiveSupport::BufferedLogger.new("/path/to/log") -- Posted via http://www.ruby-forum.com/.