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.

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top