Skip to content

Instantly share code, notes, and snippets.

@awendt
Created January 20, 2011 08:19

Revisions

  1. awendt revised this gist Jan 20, 2011. 2 changed files with 1 addition and 1 deletion.
    File renamed without changes.
    2 changes: 1 addition & 1 deletion shell transcript
    Original file line number Diff line number Diff line change
    @@ -11,7 +11,7 @@ $ rails new my_test
    # change into my_test and edit Gemfile to match above version
    $ cd my_test
    $ vi Gemfile
    $ vi config/initializers/middlerware.rb
    $ vi config/initializers/middleware.rb

    # Install gems and test app
    $ bundle install
  2. @schmidt schmidt revised this gist Jan 19, 2011. 3 changed files with 16 additions and 7 deletions.
    3 changes: 2 additions & 1 deletion Gemfile
    Original file line number Diff line number Diff line change
    @@ -2,5 +2,6 @@ source 'http://rubygems.org'
    gem 'rails', '3.0.3'

    group :development do
    gem 'rack-contrib', :require => 'rack/contrib'
    gem 'ruby-prof', '< 0.9.0'
    gem 'rack-contrib' #, :require => 'rack/contrib'
    end
    3 changes: 3 additions & 0 deletions config/initializers/middleware.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    class MyTest::Application
    config.middleware.use ::Rack::Profiler, :printer => ::RubyProf::GraphHtmlPrinter
    end
    17 changes: 11 additions & 6 deletions shell transcript
    Original file line number Diff line number Diff line change
    @@ -11,13 +11,18 @@ $ rails new my_test
    # change into my_test and edit Gemfile to match above version
    $ cd my_test
    $ vi Gemfile
    $ vi config/initializers/middlerware.rb

    # Install gems and test app
    $ bundle install
    $ rake -T
    (in /private/tmp/my_test)
    rake aborted!
    no such file to load -- rack/contrib
    /private/tmp/my_test/Rakefile:4
    (See full trace by running task with --trace)
    $ 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)
    ....


  3. @schmidt schmidt created this gist Jan 19, 2011.
    6 changes: 6 additions & 0 deletions Gemfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    source 'http://rubygems.org'
    gem 'rails', '3.0.3'

    group :development do
    gem 'rack-contrib', :require => 'rack/contrib'
    end
    23 changes: 23 additions & 0 deletions shell transcript
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    # 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

    # Install gems and test app
    $ bundle install
    $ rake -T
    (in /private/tmp/my_test)
    rake aborted!
    no such file to load -- rack/contrib
    /private/tmp/my_test/Rakefile:4
    (See full trace by running task with --trace)