morleman
morleman

Reputation: 33

Error // uninitialized constant Sass::Rails::Application (NameError)] // when running 'rails server'

When I go to run the server I receive this error:

C:\Users\myusername\sass>rails server
C:/Users/myusername/sass/config/application.rb:13:in `<module:Sass>': uninitialized 
constant Sass::Rails::Application (NameError)
        from C:/Users/myusername/sass/config/application.rb:12:in `<top (required)
>'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/comman
ds.rb:53:in `require'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/comman
ds.rb:53:in `block in <top (required)>'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/comman
ds.rb:50:in `tap'
        from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.8/lib/rails/comman
ds.rb:50:in `<top (required)>'
        from script/rails:6:in `require'
        from script/rails:6:in `<main>'

Upvotes: 3

Views: 641

Answers (1)

Simone Carletti
Simone Carletti

Reputation: 176552

Sass is a Ruby library and incidentally it is also used by Ruby. You should use a different name for your Rails app.

Run the generator again and chose a different name, such as myproject or anything else (except Ruby modules).

Upvotes: 1

Related Questions