Forum: Ruby on Rails uninitialized constant UgloungeSkills (NameError)

Posted by Bryan P. (bryan_p)
on 2012-12-30 23:18
(Received via mailing list)
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-constan...
Sent from the RubyOnRails Users mailing list archive at Nabble.com.
Posted by Frederick Cheung (Guest)
on 2012-12-30 23:21
(Received via mailing list)
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
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.