Created
January 20, 2011 08:19
-
-
Save awendt/787572 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source 'http://rubygems.org' | |
gem 'rails', '3.0.3' | |
group :development do | |
gem 'ruby-prof', '< 0.9.0' | |
gem 'rack-contrib' #, :require => 'rack/contrib' | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyTest::Application | |
config.middleware.use ::Rack::Profiler, :printer => ::RubyProf::GraphHtmlPrinter | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create empty gemset | |
$ rvm use @bundler_108 --create | |
# install bundler and rails | |
$ gem install bundler -v 1.0.8 | |
$ gem install rails | |
# create new rails project | |
$ rails new my_test | |
# change into my_test and edit Gemfile to match above version | |
$ cd my_test | |
$ vi Gemfile | |
$ vi config/initializers/middleware.rb | |
# Install gems and test app | |
$ bundle install | |
$ rails s | |
=> Booting WEBrick | |
=> Rails 3.0.3 application starting in development on http://0.0.0.0:3000 | |
=> Call with -d to detach | |
=> Ctrl-C to shutdown server | |
Exiting | |
/private/tmp/my_test/config/initializers/middleware.rb:2: uninitialized constant Rack::Profiler (NameError) | |
/private/tmp/my_test/config/initializers/middleware.rb:2: uninitialized constant Rack::Profiler (NameError) | |
.... | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment