Question

When I'm trying to install Diaspora* and after my rake db:setup I get the following error when I try open it from the browser:

NameError: uninitialized constant Pathname
/Users/myself/diaspora/config/environment.rb:15:in `<top (required)>'

the line 15 is the first after the comment:

# Load the rails application
require Pathname.new(__FILE__).dirname.expand_path.join('application')
require Rails.root.join("lib", "exceptions")

I'm also using Pow.

Was it helpful?

Solution

Add require 'pathname' at the top of environment.rb to make this core Ruby library available.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top