How to Use RVM and POW with Ruby 2.0.0
In your project's root directory add a .ruby-version file and add the ruby version to the file
ruby-2.0.0-p247
Next source RVM in the .powrc file, also in your project's root directory.
source "$rvm_path/scripts/rvm"
rvm use `cat .ruby-versio...
Written by Sean Behan on 10/19/2013
Running Gem Server to View Docs for Ruby Libraries on Localhost
gem server
will boot up documentation on port 8808 by default pass it the -p flag followed by the port number to change.
gem server -p3000
Written by Sean Behan on 06/17/2012
Defining Application Constants for Ruby on Rails Application
The best place to keep application constants which are environment specific is in config/environments directory. For instance...
# in RAILS_ROOT/config/environments/development.rb
APP_DOMAIN = "localhost"
# in RAILS_ROOT/config/environments/production.rb...
Written by Sean Behan on 06/17/2012
Setup Wildcard Subdomain on Localhost for Development Work without /Etc/hosts TomFoolery
Step 1.
Open up your browser and visit http://www.hexxie.com. You can also go to anything.hexxie.com and everything.hexxie.com, which will resolve to your local machine (assuming it's localhost at 127.0.0.1).
How it works
Super simple. I just pointed hex...
Written by Sean Behan on 06/17/2012