While working on a Sinatra App, I came about a peculiar problem, hopefully which someone could help me out with.
I'm running ruby 1.9.3 and when I run my app using ruby myapp.rb
It runs on the localhost with an error.
However when I tried sudo ruby myapp.rb
It gives me an error that Sinatra could not be loaded and when it shows me the library from which it pulls sinatra, it is /usr/lib/ruby/1.9.1
I think thats where my problem is, but I don't know how to change this path. Do I do it in my app, or terminal to change the path for ruby, any help?