Rails route error? uninitialized constant ActiveResource::Base

Posted by Marco on Stack Overflow See other posts from Stack Overflow or by Marco
Published on 2010-03-24T02:49:33Z Indexed on 2010/03/24 2:53 UTC
Read the original article Hit count: 766

Filed under:
|

I'm following the Getting Started with Rails guide but ran into an issue opening http://localhost:3000

Shell output:

[2010-03-23 19:19:14] ERROR NameError: uninitialized constant ActiveResource::Base

Error in the browser:

Internal Server Error
uninitialized constant ActiveResource::Base
WEBrick/1.3.1 (Ruby/1.8.7/2009-06-12) at localhost:3000 

I followed the directions exactly as they were specified in the guide:

  1. Ran rails generate controller home index
  2. I removed index.html
  3. Added root :to => "home#index" to config/routes.rb

I checked app/views/home/index.html.erb and it is indeed there.

I then used rails server to launch the server. At first attempt the browser loads a blank page, but afterwards starts showing the browser error above.

Why is it that Rails can't locate the index.html.erb file? Or is the error something different?

-

Running Rails 3.0beta with Ruby 1.8.7

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby