views:

46

answers:

1

I've been trying to run part of a Peepcode tutorial 'Meet Sinatra' with Shotgun (allows you to skip rebooting your web server for every change you make). The error threw up the following message:

$ shotgun simple.rb /Library/Ruby/Gems/1.8/gems/shotgun-0.8/bin/shotgun:115: undefined methoddefault' for Rack::Handler:Module (NoMethodError) from /usr/bin/shotgun:19:inload' from /usr/bin/shotgun:19

I'd tried updating system, mongrel and more to no avail.

A: 

Turned out that a simple 'sudo gem install rack' solved Shotgun's problem. Guessing the latest version of Sinatra doesn't require it anymore - but that Shotgun still does.

Either way - that fixes it!

kaichanvong