lakshmanan
2010-Jun-14 03:51 UTC
Can I have/use different Versions of rails in the same machine
I am actually reading a rails book that is written for rails 2.3.5. I want to test Rails 3 beta as well. Is it possible to have such a setup in my Mac OS leopard? I have tried with gem list -d rails. There are many versions stored in my mac but I don''t know how to use different version of rails while creating new applications with rails command. -- 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.
Raghavendra Joshi
2010-Jun-14 07:54 UTC
Re: Can I have/use different Versions of rails in the same machine
Hi, It is possible to have different rails application on single machine. While creating rails application u just need to specify corrosponding rails version. $rails _version_number_ -d database_name application_name For ex. $rails _2.3.5_ -d mysql temp On Jun 14, 8:51 am, lakshmanan <lucky.develo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I am actually reading a rails book that is written for rails 2.3.5. I > want to test Rails 3 beta as well. Is it possible to have such a setup > in my Mac OS leopard? > > I have tried with gem list -d rails. There are many versions stored in > my mac but I don''t know how to use different version of rails while > creating new applications with rails command.-- 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.
lakshmanan
2010-Jun-14 08:34 UTC
Re: Can I have/use different Versions of rails in the same machine
Thank you. Currently I have rails 2.3.8 set up in my mac. I want to install rails 3 beta as well and test it whenever I feel like. What command I should give to install rails 3. Is it just '' gem install rails'' or .... ? On Jun 14, 12:54 pm, Raghavendra Joshi <raghugjoshi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > It is possible to have different rails application on single machine. > While creating rails application u just need to specify corrosponding > rails version. > $rails _version_number_ -d database_name application_name For ex. > $rails _2.3.5_ -d mysql temp > > On Jun 14, 8:51 am, lakshmanan <lucky.develo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I am actually reading a rails book that is written for rails 2.3.5. I > > want to test Rails 3 beta as well. Is it possible to have such a setup > > in my Mac OS leopard? > > > I have tried with gem list -d rails. There are many versions stored in > > my mac but I don''t know how to use different version of rails while > > creating new applications with rails command.-- 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.
karnati kiran
2010-Jun-14 08:52 UTC
Re: Re: Can I have/use different Versions of rails in the same machine
Hi first you install ruby 1.8.7 after that you type *gem install i18n tzinfo builder memcache-client rack rack-test rack-mount erubis mail text-format thor bundler* then *gem install rails --pre* .This will install rails 3.0beta -- 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.
Frane
2010-Jun-14 11:25 UTC
Re: Can I have/use different Versions of rails in the same machine
Hi, "gem install rails --prerelease" should install the current beta. You also need to make sure that you have the latest version of RubyGems with "gem update --system". BTW. You can install any version of rails (and any version of any gem for that matter) specifically, by adding the "-v <version number>" to "gem install rails", e.g. "gem install rails -v 2.3.8" Cheers, Frane On 14 Jun., 10:34, lakshmanan <lucky.develo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Thank you. > > Currently I have rails 2.3.8 set up in my mac. I want to install rails > 3 beta as well and test it whenever I feel like. > > What command I should give to install rails 3. Is it just '' gem > install rails'' or .... ? > > On Jun 14, 12:54 pm, Raghavendra Joshi <raghugjoshi...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > wrote: > > > > > Hi, > > It is possible to have different rails application on single machine. > > While creating rails application u just need to specify corrosponding > > rails version. > > $rails _version_number_ -d database_name application_name For ex. > > $rails _2.3.5_ -d mysql temp > > > On Jun 14, 8:51 am, lakshmanan <lucky.develo...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > I am actually reading a rails book that is written for rails 2.3.5. I > > > want to test Rails 3 beta as well. Is it possible to have such a setup > > > in my Mac OS leopard? > > > > I have tried with gem list -d rails. There are many versions stored in > > > my mac but I don''t know how to use different version of rails while > > > creating new applications with rails command.-- 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.
Colin Law
2010-Jun-14 21:16 UTC
Re: Re: Can I have/use different Versions of rails in the same machine
On 14 June 2010 09:52, karnati kiran <karnatikirankumar-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi > > > first you install ruby 1.8.7 after that you type > > gem install i18n tzinfo builder memcache-client rack rack-test rack-mount > erubis mail text-format thor bundler > > > then > > gem install rails --pre .This will install rails 3.0betaI was under the impression that there were problems installing rails 2 and 3 on the same PC. Is that not correct? 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.
Greg Donald
2010-Jun-14 21:26 UTC
Re: Re: Can I have/use different Versions of rails in the same machine
On Mon, Jun 14, 2010 at 4:16 PM, Colin Law <clanlaw-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> I was under the impression that there were problems installing rails 2 > and 3 on the same PC. Is that not correct?If you use rvm you gain the ability to have separate sets of gems, named gem sets, etc. http://rvm.beginrescueend.com/ -- Greg Donald destiney.com | gregdonald.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.