Phillip, this problem has already been solved: use RVM. Create a file called ".rvmrc" and put it into the root directory of your project, like this:
rvm use 1.9.2-p290 Whenever you switch into that project (in your terminal) RVM will automatically switch ruby versions. To get your server to recognize a different ruby version is a little different. Yea, I think with Passenger/Apache you can configure the PassengerRuby setting on your site to use the Ruby binary you specify. I don't think there's a way to configure it in the app itself. think about it, how would Ruby itself read the config file before determining which ruby binary to use? It's impossible--- catch 22, it has to be in the server's configuration -Jason On Jun 4, 2012, at 2:43 PM, Philip Rhoades wrote: > People, > > Most of my Rails apps are using Ruby v1.8.7 but I need to start using Ruby > v1.9.3 for one app in particular and to start learning Rails 3.2. It seems > if I could install Ruby v1.9.3 side by side with v1.8.7 on my Fedora 16 > x86_64 server, I should be able to have something like this: > > "RUBY_VERSION = 1.9.3" > > in an app's config/environment.rb file and everything would "just work" ? > > I have messed around with RVM in the past trying to get system-wide installs > to work with both Ruby versions but just got into trouble and was only ever > able to get one version of Ruby working at once with Apache. > > Suggestions? > > Thanks, > > Phil. > -- > Philip Rhoades > > GPO Box 3411 > Sydney NSW 2001 > Australia > E-mail: p...@pricom.com.au > > -- > 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 rubyonrails-talk@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- 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 rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.