Hi all, I have an app running fine on Rails 2.2.2, but whenever I launch the script/console in the same app it loads Rails version 2.1.0. I wouldn''t really mind, except that every time I start the console I get a lot of annoying warnings about duplicate constant declarations in xmlsimple. Does anyone know how I can get the console to run on Rails 2.2.2? Thanks, Dante -- 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 -~----------~----~----~----~------~----~------~--~---
On Thu, Feb 26, 2009 at 3:23 PM, Dantelepoole Dantelepoole <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Hi all, > > I have an app running fine on Rails 2.2.2, but whenever I launch the > script/console in the same app it loads Rails version 2.1.0. I wouldn''t > really mind, except that every time I start the console I get a lot of > annoying warnings about duplicate constant declarations in xmlsimple. > > Does anyone know how I can get the console to run on Rails 2.2.2? > > Thanks, > Dante > -- > Posted via http://www.ruby-forum.com/. > > > >Do you have the rails version defined in your environment.rb file? Andrew Timberlake http://ramblingsonrails.com http://www.linkedin.com/in/andrewtimberlake "I have never let my schooling interfere with my education" - Mark Twain --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Dantelepoole Dantelepoole
2009-Feb-26 15:50 UTC
Re: script/console using older Rails version
Yes, I do. Its set to version 2.2.2. Another strange thing that I just noticed is that when I run ''gem list'' it turns out that I don''t even have Rails version 2.1.0 installed! I have versions 2.2.2, 2.1.1 and 2.0.2 installed, but no 2.1.0. I thought it might be a bug, but I have the same app running on a new laptop and the console-script on that laptop correctly loads Rails 2.2.2 and does not give the warning-messages either. Strange... Andrew Timberlake wrote:>> > > Do you have the rails version defined in your environment.rb file? > > Andrew Timberlake > http://ramblingsonrails.com > http://www.linkedin.com/in/andrewtimberlake > > "I have never let my schooling interfere with my education" - Mark Twain-- 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 -~----------~----~----~----~------~----~------~--~---
On Thu, Feb 26, 2009 at 5:50 PM, Dantelepoole Dantelepoole <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Yes, I do. Its set to version 2.2.2. Another strange thing that I just > noticed is that when I run ''gem list'' it turns out that I don''t even > have Rails version 2.1.0 installed! I have versions 2.2.2, 2.1.1 and > 2.0.2 installed, but no 2.1.0. > > I thought it might be a bug, but I have the same app running on a new > laptop and the console-script on that laptop correctly loads Rails 2.2.2 > and does not give the warning-messages either. > > Strange... > > Andrew Timberlake wrote: >>> >> >> Do you have the rails version defined in your environment.rb file? >> >> Andrew Timberlake >> http://ramblingsonrails.com >> http://www.linkedin.com/in/andrewtimberlake >> >> "I have never let my schooling interfere with my education" - Mark Twain > > -- > Posted via http://www.ruby-forum.com/. > > > >Interesting, have you run rake rails:update ? After that, I''m out of ideas Andrew Timberlake http://ramblingsonrails.com http://www.linkedin.com/in/andrewtimberlake "I have never let my schooling interfere with my education" - Mark Twain --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Dantelepoole Dantelepoole
2009-Mar-01 14:17 UTC
Re: script/console using older Rails version
I just tried, but no luck unfortunately. :-( Thanks anyway for the help! Andrew Timberlake wrote:> On Thu, Feb 26, 2009 at 5:50 PM, Dantelepoole Dantelepoole > <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >> Strange... >>> "I have never let my schooling interfere with my education" - Mark Twain >> >> -- >> Posted via http://www.ruby-forum.com/. >> >> > >> > > Interesting, have you run rake rails:update ? > After that, I''m out of ideas > > Andrew Timberlake > http://ramblingsonrails.com > http://www.linkedin.com/in/andrewtimberlake > > "I have never let my schooling interfere with my education" - Mark Twain-- 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 -~----------~----~----~----~------~----~------~--~---
Maybe at some point you put Rails 2.1.0 into vendor/rails. Anything in vendor/rails will override what you set in environment.rb and what gems you have installed. You could delete the vendor/rails directory if you don''t want it, or you could try freezing your app to Rails 2.2.2 and rerunning rake rails:update. Regards, Craig -- Craig Demyanovich Mutually Human Software http://mutuallyhuman.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 -~----------~----~----~----~------~----~------~--~---
Dantelepoole Dantelepoole
2009-Mar-01 17:48 UTC
Re: script/console using older Rails version
This did the trick.....thanks!! Craig Demyanovich wrote:> Maybe at some point you put Rails 2.1.0 into vendor/rails. Anything in > vendor/rails will override what you set in environment.rb and what gems > you > have installed. You could delete the vendor/rails directory if you don''t > want it, or you could try freezing your app to Rails 2.2.2 and rerunning > rake rails:update. > > Regards, > Craig > > > -- > Craig Demyanovich > Mutually Human Software > http://mutuallyhuman.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 -~----------~----~----~----~------~----~------~--~---