1

I wanna to run rails new like this: rails _5.0.x_ new. Is it possible accomplish something like this?

sidney
  • 1,241
  • 15
  • 32

3 Answers3

0

To use an older version than the latest you have installed, just wrap the version number in underscores:

rails _1.2.1_ myproject

see also How to set default rails version for a project?

Community
  • 1
  • 1
KcUS_unico
  • 513
  • 3
  • 9
0

Do you use RVM or any Ruby version manager?

EDIT:

My bad, actually, you were talking about rails. So, to answer your question, you can do rails _5.0.x_ new.

You can find more details on this post and this one.

Jeremie
  • 2,241
  • 2
  • 17
  • 25
0

You can use that command without patch number like this: rails _4.2_ new project_name

I checked it on my machine. I had rails 4.2.0 and 4.2.5. With that command it created the project with rails 4.2.0

VAD
  • 2,351
  • 4
  • 20
  • 32