instaling rails 4.0.8

70 views
Skip to first unread message

Darko Vulin

unread,
Oct 10, 2014, 5:42:21 AM10/10/14
to rubyonra...@googlegroups.com
I am on win7. I installed ruby 2.0.0 but I don't know how tu install rails 4.0.8.
I need this enviroment for Ruby on Rails tutorial. Thank's
Message has been deleted

Darko Vulin

unread,
Oct 13, 2014, 4:46:38 PM10/13/14
to rubyonra...@googlegroups.com
I typed the command  gem install rails -v 4.0.8 and after I typed rails -v and I got answer  rails 4.1.6
But, when I start RubyGems Documentacion server I see that I have rails 4.0.8 Full-stack web application framework.
But also I have railties 4.0.8 Tools for creating, working with, and running Rails applications. And railties 4.1.6 Tools for creating, working with, and running Rails applications.Executable is rails.
I need rails 4.0.8, not 4.1.6. Thanks

Colin Law

unread,
Oct 13, 2014, 4:53:25 PM10/13/14
to rubyonra...@googlegroups.com
I can't help as I don't use Windows, but I thought I should explain
why you have had no replies. Few people use Windows for Rails
development, it is nearly always Linux (eg Ubuntu) or Mac. I believe
it is possible on Win but you will certainly find it much more
difficult to get help. I always recommend using Ubuntu, either dual
booting the PC or by running it in a Virtual Machine (using VirtualBox
or VMWare for example).

Colin

Jason Fleetwood-Boldt

unread,
Oct 13, 2014, 5:03:57 PM10/13/14
to rubyonra...@googlegroups.com

You can't actually just specify an older version Rails when doing rails new, you need to uninstall & reinstall the whole gem itself. (or use RVM to create yourself a custom gemset, but that's beyond the scope of this answer)


you have to uninstall the rails gem (be sure to do it globally) and then install the rails gem specifying the version you want

something like:

sudo gem uninstall rails
sudo gem install rails -v 4.0.8



+1 to what Colin said, either get a Mac or virtualize Ubuntu inside that nasty wintel machine

(kidding, totally kidding, some of my best friends use Windows. But not for Rails development.)



--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b3703fe9-eebd-45d1-af33-47cb44aa55d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

----

Jason Fleetwood-Boldt

All material © Jason Fleetwood-Boldt 2014. Public conversations may be turned into blog posts (original poster information will be made anonymous). Email ja...@datatravels.com with questions/concerns about this.

Jarmo Isotalo

unread,
Oct 14, 2014, 3:59:43 AM10/14/14
to rubyonra...@googlegroups.com
You just need to specify wanted rails version in the command, rails _4.0.8_ new appname 
This works at least on ubuntu and mac.

Jason Fleetwood-Boldt

unread,
Oct 14, 2014, 10:49:37 AM10/14/14
to rubyonra...@googlegroups.com

Jarmo,

Holy crap. Is that documented?!?

That actually works for me, using the underscores just like you said. 

-Jason








On Oct 14, 2014, at 3:59 AM, Jarmo Isotalo <ja...@isotalo.fi> wrote:

You just need to specify wanted rails version in the command, rails _4.0.8_ new appname 
This works at least on ubuntu and mac.

Jarmo Isotalo

unread,
Oct 14, 2014, 10:55:21 AM10/14/14
to rubyonra...@googlegroups.com
Not sure, I may have picked it from rails source...
Ill take a closer look to the documentation later today to see if/where its hidden (unless someone does it earlier...)

-Jarmo

--
You received this message because you are subscribed to a topic in the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rubyonrails-talk/hp5wArMa6oM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rubyonrails-ta...@googlegroups.com.

To post to this group, send email to rubyonra...@googlegroups.com.

Jason Fleetwood-Boldt

unread,
Oct 14, 2014, 11:01:17 AM10/14/14
to rubyonra...@googlegroups.com

I can't find it in the Rails guides and it's not in the manual page for rails new (rails new -h).

Thanks for telling us! I've been telling people to gem uninstall & gem install for years

-Jason


On Oct 14, 2014, at 10:54 AM, Jarmo Isotalo <ja...@isotalo.fi> wrote:

Not sure, I may have picked it from rails source...
Ill take a closer look to the documentation later today to see if/where its hidden (unless someone does it earlier...)

-Jarmo

Norbert Melzer

unread,
Oct 14, 2014, 12:10:11 PM10/14/14
to Rails Mailinglist
2014-10-14 16:49 GMT+02:00 Jason Fleetwood-Boldt <te...@datatravels.com>:

Jarmo,

Holy crap. Is that documented?!?

Yapp!

But thats not rails but rubygems behaviour.

Documentation is hidden inside the documentation for "gem install":

Read the last paragraph in the description, right above "Gem Dependency Files"
 

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages