Alrighty - thanks Fred

Out of curiosity Fred - do you or anyone else reading have much
experience with using RMagick on a shared host?

Having a major headache trying to get rails to load the RMagick gem
and my host's technical help are not being so helpful

Thanks

Gavin

On Apr 19, 8:45 pm, Frederick Cheung <[email protected]>
wrote:
> On Apr 19, 8:29 pm, Gavin <[email protected]> wrote:
>
>
>
>
>
> > Hey all!
>
> > I've got an app on a shared host at the moment.
>
> > They load ruby gems into a dir onto my space: home/myusername/ruby/
> > gems/gems and recommend that you include this path by adding it to the
> > load_path like so:
>
> > $:.push("home/myusername/ruby/gems/gems")
>
> > My question is - is this the same as adding
>
> > config.load_paths += %w(home/myusername/ruby/gems/gems)
>
> > to the environment.rb file?
>
> > If so - cool!
> > If not, can anyone explain what the difference is?
>
> No - $: (and the various other names it has) is using by ruby when you
> write require 'foo'
>
> config.load_paths (which eventually gets stored in
> ActiveSupport::Dependencies.load_paths) is  the set of paths that is
> searched by rails' magic loading stuff.
>
> Fred
>
>
>
> > Thanks
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to