Ruby on Rails
Wednesday, October 1, 2014
The model is following:
--
class All < ActiveRecord::Base has_one :name has_one :email has_one :subject has_one :contents end
Do you have a model called Name (in name.rb)?
Fred
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/8b577333-b436-4ff2-a18e-f707b5f92d9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Ruby on Rails
Hi, guys
Need a hand here:
#<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
Cheers,
Gregory
-- 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.
Ruby on Rails
That was it ! Thanks!
--
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 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/7b59f7de53cf3b67dc743fae679646c0%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Posts (Atom)