Hello, I am having a hard time using a model I created. I am trying to call the object from a class in the lib directory. This class is going to run on a schedule with clockwork to repopulate a database. However, I can''t seem to access the model. Here <http://pastebin.com/8TiB7hTX> is the object that is trying to call the model. Any help is appreciated. -- View this message in context: http://ruby.11.n6.nabble.com/uninitialized-constant-UgloungeSkills-NameError-tp4985745.html Sent from the RubyOnRails Users mailing list archive at Nabble.com. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Frederick Cheung
2012-Dec-30 22:19 UTC
Re: uninitialized constant UgloungeSkills (NameError)
On Saturday, December 29, 2012 9:34:43 PM UTC, wnt2bsleepin wrote:> > Hello, I am having a hard time using a model I created. I am trying to > call > the object from a class in the lib directory. This class is going to run > on > a schedule with clockwork to repopulate a database. However, I can''t seem > to > access the model. > >You need to load the rails environment ( config/environment ) to be able to use your models Fred> > > -- > View this message in context: > http://ruby.11.n6.nabble.com/uninitialized-constant-UgloungeSkills-NameError-tp4985745.html > Sent from the RubyOnRails Users mailing list archive at Nabble.com. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/GEqPZZRZBGoJ. For more options, visit https://groups.google.com/groups/opt_out.