Ruby on Rails Tuesday, June 2, 2015

I always begin new rails projects by first creating the project directory

$ mkdir foo
$ cd foo/

$foo/ 

Once in the directory I make a .ruby-version and .ruby-gemset file

$foo/ touch .ruby-version .ruby-gemset

In the ruby-version file you just specify the version of ruby you wish to use 

2.2.1

and the ruby-gemset file you name the gemset you'd like to use

fooapp

Once you have those saved you can reload the current directory by 

$foo/ cd .

Then just rails new . and then bundle install
 

--
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-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5b691909-5a50-44a8-afcf-3cca7817c49c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment