Josh Bavari's Thoughts

Thoughts on technology and philosophy

Pow and Weird Starting Issues

less than a 1 minute read

Lately I’ve been getting this weird error from Pow in Rails 4:

Bundler::GemNotFound: Could not find rake-10.3.1 in any of the sources

Read more below to see what I did.

In boot.rb:

1
2
3
4
5
require 'rubygems'
# Set up gems listed in the Gemfile.
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)

require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])

In config.ru:

1
2
require ::File.expand_path('../config/environment',  __FILE__)
run Rails.application

Hope this helps.

Comments