From: Naughty N. <nau...@gm...> - 2010-04-13 22:09:01
|
Ok, so i solved the connection error (due to incorrect default architecture)... but still it's impossible to work with a ActiveRecord::Base record-class. I 'require' the database object. No luck. I define the class inside the main class itself. Does not work of course. Everytime i get this error (after connecting successfully to the db) after get all records using simple requests like @task = Task.find(:all) TypeError: can't dup NilClass /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/base.rb:2184:in `dup' Anyone have any ideas? Strange this is, this works fine in irb, but not in a compiled rubycocoa app... How do YOU use Activerecord calls in your Rubycocoa application? -- This signature is patented. |