Rake Routes

Rails, Ruby, and other programming.

RVM Workflow for a New Rails App

You want to start a new Rails app. But you also want to start a new RVM gemset for the app so you can start with the latest Rails and gems. In this code snippet I show how I start off an up-to-date Rails project in a clean gemset.

Creating a new Rails app

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# create and use the new RVM gemset
$ rvm use --create 1.9.3@awesome_rails_project

# install rails into the blank gemset
$ gem install rails

# generate the new rails project
$ rails new awesome_rails_project

# go into the new project directory and create an .rvmrc for the gemset
$ cd awesome_rails_project
$ rvm --rvmrc 1.9.3@awesome_rails_project

# verify the rvmrc
$ cd ..; cd -

There you go. A blank slate gemset and the latest Rails, just waiting for you to code in some awesome.

PhishMe is Hiring!

Want to work from home with me and other awesome Rails devs to solve interesting problems for a fantastic company? A company that believes in investing back into its employees? I'm talking fully paid company trips, Ruby/Rails conferences, an expense account for Internet costs, and access to great online learning resources. Also the best coworkers ever. :-)

Doesn't that sound awesome? If so, we'd like to talk with you!

Comments

Real Time Analytics