I''m fairly new to Ruby (around 6 months) and to RoR (about two or three weeks of practical experience). However, for an important programming project, I''m (for economical reasons) stuck serving my app on a hosted web server which uses Ruby 1.8.7 and Rails 2.3.10. But I want to be using Ruby 1.9 and Rails 3. My Rails book seemed to indicate (if I understood correctly) that you could actually pick which version of Rails your app used, even if it is not what is installed on the server. Could somebody give me some insight into how that works? Also, it it possible to have (and use) your own "local" installation of Ruby (inside your HOME directory) that is the version you prefer? -- Posted via http://www.ruby-forum.com/. -- 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, Nov 21, 2010 at 1:00 AM, Terry Michaels <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> .... I''m (for economical reasons) stuck serving my app on a hosted > web server which uses Ruby 1.8.7 and Rails 2.3.10. But I want to be > using Ruby 1.9 and Rails 3. > > My Rails book seemed to indicate (if I understood correctly) that you > could actually pick which version of Rails your app used, even if it is > not what is installed on the server. Could somebody give me some insight > into how that works?See: rake -T | grep rails | grep freeze> Also, it it possible to have (and use) your own > "local" installation of Ruby (inside your HOME directory) that is the > version you prefer?See: http://rvm.beginrescueend.com/ HTH, -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- 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.
If you use Rails < 3.0 version, so its version is defined in your_app/ config/environment.rb file as RAILS_GEM_VERSION = ''2.3.8'' unless defined? RAILS_GEM_VERSION To get your RoR application running on a dedicated host, you should have the same Rails and gem versions on the server that you use in the development environment. If not you risk to have some compatibility problems, weird messages, etc. Rails 3 uses a little bit different project structure, command syntax and a lot of other new features (see Rails 3 release notes and guides for more information). You will find compatibility issues (Ruby version required to use Rails 3, etc.) out there. On Nov 21, 10:00 am, Terry Michaels <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I''m fairly new to Ruby (around 6 months) and to RoR (about two or three > weeks of practical experience). However, for an important programming > project, I''m (for economical reasons) stuck serving my app on a hosted > web server which uses Ruby 1.8.7 and Rails 2.3.10. But I want to be > using Ruby 1.9 and Rails 3. > > My Rails book seemed to indicate (if I understood correctly) that you > could actually pick which version of Rails your app used, even if it is > not what is installed on the server. Could somebody give me some insight > into how that works? Also, it it possible to have (and use) your own > "local" installation of Ruby (inside your HOME directory) that is the > version you prefer? > > -- > Posted viahttp://www.ruby-forum.com/.-- 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.
Hello, On your local try out RVM: http://rvm.beginrescueend.com/ These kind of changes are wise to do in test environment. So you won''t have the risk. (I also suggest some test framework and test-driven development - just try it out, you will feel more comfortable.) But I''m afraid different versions will cause problems, so you may not necessarily want to update that app, if it''s already running. If its not big, then rebuild ;) Good luck, Zoltán On nov. 21, 09:00, Terry Michaels <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I''m fairly new to Ruby (around 6 months) and to RoR (about two or three > weeks of practical experience). However, for an important programming > project, I''m (for economical reasons) stuck serving my app on a hosted > web server which uses Ruby 1.8.7 and Rails 2.3.10. But I want to be > using Ruby 1.9 and Rails 3. > > My Rails book seemed to indicate (if I understood correctly) that you > could actually pick which version of Rails your app used, even if it is > not what is installed on the server. Could somebody give me some insight > into how that works? Also, it it possible to have (and use) your own > "local" installation of Ruby (inside your HOME directory) that is the > version you prefer? > > -- > Posted viahttp://www.ruby-forum.com/.-- 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.