Does anyone know if it is possible to set the ruby version (and thus the rails version) within a rails app? Say I have 2 versions of ruby installed on my machine and version 1 is set in the path, but I want to use version 2 for this particular app. Can I set that in the path or does that have to be set for the whole system? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Sun, Dec 11, 2011 at 12:30 AM, Tim <timdholmes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Does anyone know if it is possible to set the ruby version (and thus > the rails version) within a rails app? Say I have 2 versions of ruby > installed on my machine and version 1 is set in the path, but I want > to use version 2 for this particular app. Can I set that in the path > or does that have to be set for the whole system? >With rvm this becomes trivially simple .... Install rvm from http://beginrescueend.com/ In the root dir of each of your applications, set a .rvmrc file with e.g. rvm use 1.9.3 and your done. When you cd into that directory, rvm will pick set-up the ruby version you wanted to use in that directory. HTH, Peter -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 10 December 2011 23:43, Peter Vandenabeele <peter-jNuWw7i2w7syMbTcgqFhxg@public.gmane.org> wrote:> On Sun, Dec 11, 2011 at 12:30 AM, Tim <timdholmes-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> Does anyone know if it is possible to set the ruby version (and thus >> the rails version) within a rails app? Say I have 2 versions of ruby >> installed on my machine and version 1 is set in the path, but I want >> to use version 2 for this particular app. Can I set that in the path >> or does that have to be set for the whole system? > > > With rvm this becomes trivially simple ....Coincidentally that is the same answer I gave when you asked the same question a couple of days ago. Rather than asking the question again (presumably in the hope of other options) you would have been better to continue the same thread and ask for further options if rvm does not do what you want. Colin -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Sorry, I didn''t mean to ask the same question again...when I clicked the link in my email it said it was gone and I couldn''t find it. Sorry! And thanks for your answer! You are the best! On Dec 11, 2:56 am, Colin Law <clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 10 December 2011 23:43, Peter Vandenabeele <pe...-jNuWw7i2w7syMbTcgqFhxg@public.gmane.org> wrote: > > > On Sun, Dec 11, 2011 at 12:30 AM, Tim <timdhol...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > >> Does anyone know if it is possible to set the ruby version (and thus > >> the rails version) within a rails app? Say I have 2 versions of ruby > >> installed on my machine and version 1 is set in the path, but I want > >> to use version 2 for this particular app. Can I set that in the path > >> or does that have to be set for the whole system? > > > With rvm this becomes trivially simple .... > > Coincidentally that is the same answer I gave when you asked the same > question a couple of days ago. Rather than asking the question again > (presumably in the hope of other options) you would have been better > to continue the same thread and ask for further options if rvm does > not do what you want. > > Colin-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.