How do you tell Rails what version of gems to use? For example, I have active record 1.14.2, 1.14.4, 1.15.1, and 1.15.3 installed. 1.15.1 is actually what is used when I browse the website. I want it to use 1.15.3... The same goes for active support as well. Thx. -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Blake Miller wrote:> How do you tell Rails what version of gems to use? > > For example, I have active record 1.14.2, 1.14.4, 1.15.1, and 1.15.3 > installed. 1.15.1 is actually what is used when I browse the website. > I want it to use 1.15.3... > > The same goes for active support as well.You shouldn''t mix and match various modules for Rails, since a Rails release is tested as a coherent set of version-compatible modules. But you can do what you want by setting the version of the Rails gem to use. In config/environment.rb there is a line near the top that sets the RAILS_GEM_VERSION constant. Change that to the version of Rails you want. -- Josh Susser http://blog.hasmanythrough.com -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> You shouldn''t mix and match various modules for Rails, since a Rails > release is tested as a coherent set of version-compatible modules. But > you can do what you want by setting the version of the Rails gem to use. > In config/environment.rb there is a line near the top that sets the > RAILS_GEM_VERSION constant. Change that to the version of Rails you > want.So the gems it uses is determined by the rails gem dependencies? I just wondered because I''m rolling Rails 1.2.1, somehow got active record 1.15.3, but Rails 1.2.1 uses 1.15.1. Maybe I "accidentally" updated active record : / itself. -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> How do you tell Rails what version of gems to use? > > For example, I have active record 1.14.2, 1.14.4, 1.15.1, and 1.15.3 > installed. 1.15.1 is actually what is used when I browse the website. > I want it to use 1.15.3... > > The same goes for active support as well.In config/environment.rb... # Specifies gem version of Rails to use when vendor/rails is not present RAILS_GEM_VERSION = ''1.1.6'' Pick the rails version that corresponds to the "sub versions" you want to use... -philip --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---