I want Rails version 3.2 after install, not 4

212 views
Skip to first unread message

Mark Locklear

unread,
May 15, 2014, 12:07:45 PM5/15/14
to railsin...@googlegroups.com
Hello all! I am a community college instructor and am excited about teaching a Rails class this fall. I am considering either Vagrant, or Railsinstaller as our base install for our classroom/lab. I will be teaching the class based on Rails 3.2.x. I have downloaded and install the Railsinstaller and while the website says Rails 3.2 will be install (it is) Rails 4 is also installed, and set at the default. That is to say when I create a new app after install it is a rails 4 app. If I issue 'gem list rails' at the Railsinstaller command prompt it lists rails (4.1.1, 3.2.18). I'm thinking what is happening is that rails 3.2 is installed when the installer runs, but rails 4 is being added when the gems update?

Either way, my goal is to get rails 3.2.18 on the machine. Is there a way to do this from the installer?

If not I also tryed uninstalling rails and choosing to remove rails 4, but I still get rails 4 showing when I issue rails -v.

Any who...any help appreciated!

Surya Avantsa

unread,
May 15, 2014, 1:24:52 PM5/15/14
to railsin...@googlegroups.com

It's interesting that I'm planning to take Ruby on rails classes next month.

To install a specific version of rails, you would say,

gem install rails -v 3.2

Hope that helps.

Take care

Surya Avantsa

Pardon me typos wile swyping

--
You received this message because you are subscribed to the Google Groups "RailsInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email to railsinstalle...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Evan Machnic

unread,
May 15, 2014, 1:38:15 PM5/15/14
to railsin...@googlegroups.com
It's a known bug that Rails 4 is being installed if you search the previous posts. That being said, you should be able to install 3.2.18, as Surya said, with:

$ gem install rails -v 3.2.18

To run commands with that version as opposed to 4, you can pass the version like so:

$ rails _3.2.18_ new my_app

Hope that helps,
Evan

Evan Machnic | Deployment Engineer | m: 850.307.0313 | s: evan.ey | t: @emachnic 

Mark Locklear

unread,
May 16, 2014, 10:05:49 AM5/16/14
to railsin...@googlegroups.com
Thanks all for the reply's. Actually I think rails 3.2.18 is already installed, so no need to install it, I can just pass the version when using the rails new command as Evan suggested.

Thanks to the developers for the hard work on rails installer. As a Comm College instructor its important that we have a windows version of rails that we can teach students. I considered using Vagrant for my class, but requiring students to learn a new OS to learn a web dev framework adds another layer of complexity to an already difficult topic. While rails on windows may not be a truly complete development platform it at least gives windows users a segway into the world of rails where they later would move to a mac or linux environment. Keep up the good work!

Mark Locklear

unread,
May 16, 2014, 10:27:57 AM5/16/14
to railsin...@googlegroups.com
Just an FYI on this if you want to downgrade to rails 3.2.18 I just did the gem uninstall on railties and removed version 4. So do...

'gem uninstall railties' ...and when it asks for the version just choose rails 4.

Carlo Giustinoni

unread,
Jul 15, 2014, 7:20:34 PM7/15/14
to railsin...@googlegroups.com
I can't even get gem uninstall to work on my Windows 7, what platform are you on ?


On Thursday, May 15, 2014 12:07:45 PM UTC-4, Mark Locklear wrote:

Surya Avantsa

unread,
Jul 15, 2014, 7:23:14 PM7/15/14
to railsin...@googlegroups.com
You can live with multiple versions of rails. Just specify the version of rails you want to use for a given application in its gem file.

Hope that helps.


Thank You,

Surya Avantsa





--

Carlo Giustinoni

unread,
Jul 16, 2014, 9:55:15 AM7/16/14
to railsin...@googlegroups.com
the VS 2010 shell complains that it needs Rails 3 not 4.1.1, how do I get past this ?


On Thursday, May 15, 2014 12:07:45 PM UTC-4, Mark Locklear wrote:

Carlo Giustinoni

unread,
Jul 16, 2014, 9:56:12 AM7/16/14
to railsin...@googlegroups.com
I can't get past the VS2010 shell message that it needs Rails 3 not 4.1.1, any ideas ?


On Thursday, May 15, 2014 12:07:45 PM UTC-4, Mark Locklear wrote:

Evan Machnic

unread,
Jul 16, 2014, 10:32:58 AM7/16/14
to railsin...@googlegroups.com
Hi,

You need to stop using the VS 2010 shell. If you want to use RailsInstaller, you need to use Command Prompt with Ruby and Rails.

Evan

Evan Machnic | Deployment Engineer | m: 850.307.0313 | s: evan.ey | t: @emachnic
Join us for Distill: Engine Yard's Developer Conference • August 7-8, 2014
Inline image 1


--

Carlo Giustinoni

unread,
Jul 16, 2014, 10:54:26 AM7/16/14
to railsin...@googlegroups.com
How do  I specify Rails 3.28 instead of 4.1.1 for a new project in VS 2010 shell

Carlo Giustinoni

unread,
Jul 16, 2014, 10:57:28 AM7/16/14
to railsin...@googlegroups.com
I need to use some IDE to build web applications, I was going to follow the tutorials , they use VS2010 shell; how do I use CMD with Ruby and Rails?

Carlo Giustinoni

unread,
Jul 16, 2014, 11:05:43 AM7/16/14
to railsin...@googlegroups.com
Ok, I stopped using VS2010 shell, I created a blog application using the CMD rails command, now I tried http://localhost:3000 and I get the message that the page can't be displayed, how do I tell the server to listen on port 3000, I have forgotten a lot of this stuff


On Wednesday, July 16, 2014 10:32:58 AM UTC-4, Evan Machnic wrote:

Evan Machnic

unread,
Jul 16, 2014, 1:34:10 PM7/16/14
to railsin...@googlegroups.com
Please consult the Rails documentation for Rails-related issues. 

Evan

Evan Machnic
@emachnic

Surya Avantsa

unread,
Jul 16, 2014, 1:55:21 PM7/16/14
to railsin...@googlegroups.com
Did you start the application? After creating the application, you should run the command rails server from the application folder.


Thank You,

Surya Avantsa





Carlo Giustinoni

unread,
Jul 16, 2014, 3:52:45 PM7/16/14
to railsin...@googlegroups.com
I entered rails server QP 3000 from the application folder, then I launched the browser with http://localhost:3000 and received page cannot be displayed; this is truly the worst set of installation instructions I have ever seen

Carlo Giustinoni

unread,
Jul 16, 2014, 3:56:58 PM7/16/14
to railsin...@googlegroups.com
I followed the instructions from Getting Started in the Rails Guide, it is obvious that the documentation hasn't kept pace with development; how do I tell Rails to listen on port 3000? Secondly, I was told to avoid VS2010 Shell, what IDE can I use to develop Rails projects ?

Surya Avantsa

unread,
Jul 16, 2014, 4:00:13 PM7/16/14
to railsin...@googlegroups.com
Carlo,

This is a forum where people are spending their free time to help each other out. Treating each other with respect and appreciating help are two very important ingredients for someone, especially when you are seeking help.

If you are having genuine problems and you are seeking help, after doing your due diligence, that is one thing. But forgetting what you have learned, belittling the help that others are providing you will not get you too far. Please go back and refer to your lessons, the documentation that Evan has provided, and follow the instructions and you will certainly be able to get something out of yourself.

If you are in disagreement with what I am saying here, please do not bother to reply.


Thank You,

Surya Avantsa





Evan Machnic

unread,
Jul 16, 2014, 4:02:16 PM7/16/14
to railsin...@googlegroups.com
I’m not sure what the “QP” is that you’re typing. By default, running `rails server` will listen on port 3000 so you shouldn’t need to do anything extra. If you need an IDE, check out Redmine or Aptana but most devs just use a text editor like SublimeText or similar.

Evan

Evan Machnic | Deployment Engineer | m: 850.307.0313 | s: evan.ey | t: @emachnic
Join us for Distill: Engine Yard's Developer Conference • August 7-8, 2014
Inline image 1


Carlo Giustinoni

unread,
Jul 16, 2014, 4:06:14 PM7/16/14
to railsin...@googlegroups.com
I entered rails server from bin/blog after creating the blog application and I received this message Could not find a JavaScript runtime

Evan Machnic

unread,
Jul 16, 2014, 4:07:29 PM7/16/14
to railsin...@googlegroups.com
Hi,

Please search the previous posts as that has been answered before.

Evan

Evan Machnic | Deployment Engineer | m: 850.307.0313 | s: evan.ey | t: @emachnic
Join us for Distill: Engine Yard's Developer Conference • August 7-8, 2014
Inline image 1


Carlo Giustinoni

unread,
Jul 16, 2014, 4:11:46 PM7/16/14
to railsin...@googlegroups.com
Surya, I followed the instructions set out in the Rails Guide, word for word, I was merely venting my frustration at trying to get an application to work, my problems are genuine and I am seeking help

Carlo Giustinoni

unread,
Jul 16, 2014, 4:14:11 PM7/16/14
to railsin...@googlegroups.com
I saw the QP statement posted by someone in this forum, I was trying anything to get the blog application to render in the browser

Evan Machnic

unread,
Jul 16, 2014, 4:18:48 PM7/16/14
to railsin...@googlegroups.com
Hi Carlo,

Have you tried searching for the Javascript error? It’s pretty common.

Evan

Evan Machnic | Deployment Engineer | m: 850.307.0313 | s: evan.ey | t: @emachnic
Join us for Distill: Engine Yard's Developer Conference • August 7-8, 2014
Inline image 1


Carlo Giustinoni

unread,
Jul 16, 2014, 4:21:31 PM7/16/14
to railsin...@googlegroups.com
I am looking for it right now, no luck so far

Evan Machnic

unread,
Jul 16, 2014, 4:24:38 PM7/16/14
to railsin...@googlegroups.com

Evan Machnic | Deployment Engineer | m: 850.307.0313 | s: evan.ey | t: @emachnic
Join us for Distill: Engine Yard's Developer Conference • August 7-8, 2014
Inline image 1


Carlo Giustinoni

unread,
Jul 16, 2014, 4:38:22 PM7/16/14
to railsin...@googlegroups.com
Evan, I entered gem install 'execjs' and that successfully installed execjs-2.2.1; then I entered gem install 'therubyracer'  and that failed to build gem native extension

Evan Machnic

unread,
Jul 16, 2014, 4:46:02 PM7/16/14
to railsin...@googlegroups.com
Have you installed the DevKit properly to be able to build the extensions? Additionally, did you try just installing Node.js? That will give you a runtime.

Evan

Evan Machnic | Deployment Engineer | m: 850.307.0313 | s: evan.ey | t: @emachnic
Join us for Distill: Engine Yard's Developer Conference • August 7-8, 2014
Inline image 1


Carlo Giustinoni

unread,
Jul 16, 2014, 4:51:42 PM7/16/14
to railsin...@googlegroups.com
Not sure how to install Node.js

Carlo Giustinoni

unread,
Jul 16, 2014, 4:53:06 PM7/16/14
to railsin...@googlegroups.com
I think DevKit is installed as part of the package at www.railsinstaller.org

Evan Machnic

unread,
Jul 16, 2014, 4:57:38 PM7/16/14
to railsin...@googlegroups.com
There is a package to install Node.js. It’s not hard. Please learn to use the Googles.

Evan

Evan Machnic | Deployment Engineer | m: 850.307.0313 | s: evan.ey | t: @emachnic
Join us for Distill: Engine Yard's Developer Conference • August 7-8, 2014
Inline image 1


Bryan Bibat

unread,
Jul 16, 2014, 5:42:56 PM7/16/14
to railsin...@googlegroups.com
Hello,

The others have already mentioned the correct steps to install and run Rails so I don't have anything to add to the discussion. (If you get them out of order, you can refer to http://docs.railsbridge.org/installfest/windows)

However, I'm a bit curious: what tutorial told you to use VS2010 shell?

--
Bryan Bibat
Freelance Software Engineer
http://www.bryanbibat.net

Carlo Giustinoni

unread,
Jul 17, 2014, 2:45:14 PM7/17/14
to railsin...@googlegroups.com
Thanks, I installed node.js, I am finally able to see the welcome aboard page on localhost:3000

Carlo Giustinoni

unread,
Jul 21, 2014, 10:36:04 AM7/21/14
to railsin...@googlegroups.com
Evan, I created a new  embedded erb file  labeled new.html and then launched http://localhost:3000/articles/new  but the title didn't render , instead I received this error

No route matches [GET] "/articles/new"

Rails.root: C:/RailsInstaller/Ruby1.9.3/bin/blog

Evan Machnic

unread,
Jul 21, 2014, 10:41:53 AM7/21/14
to railsin...@googlegroups.com
Carlo,

Please consult the Rails documentation on routing as this is not a RailsInstaller issue. 

Evan

Evan Machnic
@emachnic

Carlo Giustinoni

unread,
Jul 28, 2014, 4:28:49 PM7/28/14
to railsin...@googlegroups.com
Evan, I am getting this error when I try to render text in the Title and Text boxes, Couldn't find Article with 'id'=show

Evan Machnic

unread,
Jul 28, 2014, 5:02:23 PM7/28/14
to railsin...@googlegroups.com
Carlo,

Again, this is a Rails question, not one for RailsInstaller. Please consult the documentation or ask in the #rubyonrails IRC channel.

Evan

Evan Machnic | Deployment Engineer | m: 850.307.0313 | s: evan.ey | t: @emachnic
Join us for Distill: Engine Yard's Developer Conference • August 7-8, 2014
Inline image 1


Reply all
Reply to author
Forward
0 new messages