If I run this in the rails console for the site it works perfectly, but
the same code in my controller or a rake task fails with the following
message:
no such file to load -- geox
What am I doing wrong over here? I'm at a complete loss. Thanks in
advance for your help.
If I run this in the rails console for the site it works perfectly,
but
the same code in my controller or a rake task fails with the following
message:
no such file to load -- geox
What am I doing wrong over here? I'm at a complete loss. Thanks in
advance for your help.
To load the gem you should use
gem 'geox'
(and then possibly use require to load files from inside the gem)
rails does fiddle with requite and so on which may explain some of the
differences