views:

26

answers:

2

What does --pre do in gem install rails --pre ?

+2  A: 

The '--pre' is a shortcut for '--prerelease'.

Arsen7
+1  A: 

--pre means that it will install the prerelease of the rails gem. For instance when Rails 3 was still in beta, you could still play around with it by getting the prerelease.

You shouldn't run this unless you want to be on edge of a gem (for development or test purposes). I wouldn't recommend putting a website in production with a gem in prerelease as they might not be stable enough yet.

marcgg