Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to fix "uninitialized constant SampleApp"
    primarykey
    data
    text
    <p>I'm trying to run <code>rails server</code> and I'm seeing something like this:</p> <pre><code>C:\Users\Mama i Tata&gt;cd c:/rails_project/my_app c:\rails_project\my_app&gt;rails s =&gt; Booting WEBrick =&gt; Rails 3.2.6 application starting in development on http://0.0.0.0:3000 =&gt; Call with -d to detach =&gt; Ctrl-C to shutdown server Exiting c:/rails_project/my_app/config/routes.rb:1:in `&lt;top (required)&gt;': uninitialized constant SampleApp (NameError) from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/applic ation/routes_reloader.rb:40:in `block in load_paths' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/applic ation/routes_reloader.rb:40:in `each' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/applic ation/routes_reloader.rb:40:in `load_paths' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/applic ation/routes_reloader.rb:16:in `reload!' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/applic ation/routes_reloader.rb:26:in `block in updater' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_ support/file_update_checker.rb:78:in `call' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.2.6/lib/active_ support/file_update_checker.rb:78:in `execute' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/applic ation/routes_reloader.rb:27:in `updater' from C:in `execute_if_updated' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/applic ation/finisher.rb:66:in `block in &lt;module:Finisher&gt;' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/initia lizable.rb:30:in `instance_exec' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/initia lizable.rb:30:in `run' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/initia lizable.rb:55:in `block in run_initializers' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/initia lizable.rb:54:in `each' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/initia lizable.rb:54:in `run_initializers' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/applic ation.rb:136:in `initialize!' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/railti e/configurable.rb:30:in `method_missing' from c:/rails_project/my_app/config/environment.rb:5:in `&lt;top (required) from c:/rails_project/my_app/config.ru:4:in `require' from c:/rails_project/my_app/config.ru:4:in `block in &lt;main&gt;' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb: 51:in `instance_eval' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb: 51:in `initialize' from c:/rails_project/my_app/config.ru:1:in `new' from c:/rails_project/my_app/config.ru:1:in `&lt;main&gt;' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb: 40:in `eval' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb: 40:in `parse_file' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:2 00:in `app' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/comman ds/server.rb:46:in `app' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:3 01:in `wrapped_app' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:2 52:in `start' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/comman ds/server.rb:70:in `start' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/comman ds.rb:55:in `block in &lt;top (required)&gt;' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/comman ds.rb:50:in `tap' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/railties-3.2.6/lib/rails/comman ds.rb:50:in `&lt;top (required)&gt;' from script/rails:6:in `require' from script/rails:6:in `&lt;main&gt;' </code></pre> <p>I'm using Ruby 1.9.3p194 (2012-04-20) [i386-mingw32].</p> <p>Got any ideas?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload