

|
Valid XHTML v1.0
Author Profile
Top Authors
Log In to set widget preferences
| Author | # |
|---|---|
|
185 |
|
148 |
Anonymous User
|
49 |
|
28 |
Kimberly Hieber
|
27 |
|
23 |
Note: some conversations may be proxied or secured, thereby causing # differences
Subscribe
Partners
Recent
Tags
Log In to set widget preferences
Recent
Log In to set widget preferences
Most Active
Log In to set widget preferences
Popular
Log In to set widget preferences
|
|
How To: Add gem requirements to a Rails project
by terry on 2008-10-22 04:28 PM read 166 times |
Old (and busted) way of adding gems to a project:
install gem locally, put note in doc/README for version to give a note to deployer to install gem, and ask terry to install a specific gem on CI.
New way of adding gems, thanks to everybody being >Rails2:
In your config/environment.rb, you'll see a few lines in the Rails::Initializer.run block that start with "config.gem". This is where you add your gem dependencies. After adding a gem here, a deployer (or our cap deploy script), can just run "rake gems:install" and Rails will ensure the dependencies are met.
A few gotchas:
Log In to Reply |
2 Versions |
Log In to Copy |
Tell a Friend
|
Trackback URL: http://www.kalivo.com/trackback/1787-how-to-add-gem-requirements-to-a-rails-project
