Created
February 19, 2010 05:47
-
-
Save ttdonovan/308472 to your computer and use it in GitHub Desktop.
This file contains 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
# FIXME: required for Bundler http://gist.github.com/302406 | |
class Rails::Boot | |
def run | |
load_initializer | |
extend_environment | |
Rails::Initializer.run(:set_load_path) | |
end | |
def extend_environment | |
Rails::Initializer.class_eval do | |
old_load = instance_method(:load_environment) | |
define_method(:load_environment) do | |
Bundler.require :default, RAILS_ENV | |
old_load.bind(self).call | |
end | |
end | |
end | |
end | |
# All that for this: | |
Rails.boot! |
This file contains 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 :gemcutter | |
source 'http://gems.github.com' | |
gem 'rubygems-update' | |
gem 'bundler', '0.9.7' | |
gem 'rails', '2.3.5', :require => nil | |
gem 'sqlite3-ruby', '1.2.5', :require => 'sqlite3' | |
gem 'test-unit', '1.2.3' | |
gem 'hoptoad_notifier', '2.1.3' | |
gem 'clearance', '0.8.5' | |
group :test do | |
gem 'factory_girl', '1.2.3' | |
gem 'shoulda', '2.10.3' | |
end | |
group :cucumber do | |
gem 'test-unit', '1.2.3' | |
gem 'cucumber', '0.6.2' | |
gem 'cucumber-rails', '0.2.4' | |
gem 'database_cleaner', '0.4.3' | |
gem 'factory_girl', '1.2.3' | |
gem 'rspec', '1.3.0' | |
gem 'rspec-rails', '1.3.2' | |
gem 'shoulda', '2.10.3' | |
gem 'webrat', '0.7.0' | |
end | |
group :development do | |
gem 'rails-footnotes' | |
gem 'nifty-generators', '0.3.0' | |
end | |
group :production do | |
gem 'texticle' | |
gem 'pg' | |
end |
This file contains 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
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:426:in `load_missing_constant': Expected /disk1/home/slugs/119570_ee9dff8_4959/mnt/app/controllers/sessions_controller.rb to define SessionsController (LoadError) | |
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in `const_missing' | |
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:92:in `const_missing' | |
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:437:in `load_missing_constant' | |
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in `const_missing' | |
from /disk1/home/slugs/119570_ee9dff8_4959/mnt/app/controllers/sessions_controller.rb:1 | |
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in `require' | |
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in `require' | |
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:265:in `require_or_load' | |
... 26 levels... | |
from /usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:29:in `instance_eval' | |
from /usr/local/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:29:in `initialize' | |
from /home/heroku_rack/heroku.ru:1:in `new' | |
from /home/heroku_rack/heroku.ru:1 |
This file contains 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
begin | |
require File.expand_path('../../.bundle/environment', __FILE__) | |
rescue LoadError | |
p "Error loading Bundler environment - run $ bundle install && bundle lock" | |
end |
This file contains 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 SessionsController < Clearance::SessionsController | |
def url_after_create | |
account_url | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment