Ruby on Rails Wednesday, October 1, 2014

Hi, guys
Need a hand here:

puts All.connection  puts All.all.inspect  All.import columns, values

gives me the following error

#<ActiveRecord::ConnectionAdapters::SQLite3Adapter:0x00000006568e38>
 #<ActiveRecord::Relation []>
rake
aborted! NameError: uninitialized constant All::Name /usr/local/rvm/gems/ruby-2.1.2/gems/activerecord-4.1.6/lib/active_record/inheritance.rb:133:in

So, I can connect, I can inspect, but I cant import into my model.

The model is following:

class All < ActiveRecord::Base
has_one :name
has_one :email
has_one :subject
has_one :contents
end

Any help would be highly appreciated,

Cheers,
Gregory

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/e4a8a15d-7404-4865-997b-48b3bbd534fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment