Skip to content

Instantly share code, notes, and snippets.

@lenary
Created January 16, 2010 12:17
Show Gist options
  • Save lenary/278803 to your computer and use it in GitHub Desktop.
Save lenary/278803 to your computer and use it in GitHub Desktop.

Useful Scripts

http://gist.github.com/278801 - updates vendor/rails and then bundles gems (requires rvm) run it from rails_root, but leave it in bin/update.rb

Bundler Issues

If you're bundling rails, and not wanting to test mysql or postgresql, then run gem bundle --only default - it will skip mysql and postgres

if you're having troubles with bundler, nuke vendor/gems and then run it again.

if you're still having issues with gem bundler, take a look at http://pastie.org/780347 - a fix is on its way (trouble with spaces in the path)

if you hit "undefined method 'gems' for #Array:..." when using bundler, just update it.

if you get a loaderror to do with 'rails/all' use --dev with the rails command

ENV Variables

  • RAILS_ENV is now Rails.env
  • RAILS_ROOT is now Rails.root
  • RAILS_DEFAULT_LOGGER is now Rails.logger
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment