Iván Vega Rivera
2005-Oct-16 01:53 UTC
Problem using ''require'' inside Rails app. In irb it works fine!
Hi, I''m trying to get the ri18n gem to work with my rails app. I installed it using gem, and it appears to be installed allright, because if I run require ''i18nservice'' inside irb, it returns true. However, if I do that inside a rails controller, for example, I get: No such file to load -- i18nservice. What could be the problem here? Thanks in advance! Ivan V. As a side issue, do you know why in DreamHost when I try to run a plain ruby script that ''requires'' the mysql lib, it throws the same error, but rails does work? Obviously the mysql lib is installed just fine..
Iván Vega Rivera
2005-Oct-17 21:55 UTC
Re: Problem using ''require'' inside Rails app. In irb it works fine!
Iván Vega Rivera wrote:> Hi, > > I''m trying to get the ri18n gem to work with my rails app. I installed > it using gem, and it appears to be installed allright, because if I > run require ''i18nservice'' inside irb, it returns true. However, if I > do that inside a rails controller, for example, I get: No such file to > load -- i18nservice. > > What could be the problem here? > > Thanks in advance! > > Ivan V. > > As a side issue, do you know why in DreamHost when I try to run a > plain ruby script that ''requires'' the mysql lib, it throws the same > error, but rails does work? Obviously the mysql lib is installed just > fine.. > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >Please, doesn''t anyone know what to do? Some pointers at least? Thanks! - Ivan V.