jump to navigation

Developing in Ruby on Rails is like using a Mac April 22, 2008

Posted by adamw523 in Uncategorized.
trackback

I’ve heard this said many times about the OS X operating system: “Every so often you come across a simple feature that makes you appreciate the forethought of it’s creators”

Running BackgrounDRb wasn’t running because the frozen packet gem wasn’t loading. After a little Google research, I came across a nice solution.

I didn’t originally know that you could specify which Rails plugins you want to load or not load by specifying a list of plugins with config.plugins.

So, to ensure that Gems On Rails, and all of the gems froze with it always load first, I added the following to environment.rb:

config.plugins = [ :gemsonrails, :all ]

Gotta love a simple solution like that :)

About these ads

Comments»

1. panzi - December 7, 2008

This does not work for me. Any other hints?

$ ./script/backgroundrb start
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require’: no such file to load — packet (LoadError)
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require’
from ./script/backgroundrb:15

2. Sam - February 16, 2010

running ‘rake gems:install’ fixed the problem for me

3. Sam - February 16, 2010

Wait i also added ‘config.gem “packet”‘ to the environment.rb


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: