error on heroku: uninitialized constant ResourceController (NameError)

124 views
Skip to first unread message

elle

unread,
Jul 22, 2009, 2:11:09 AM7/22/09
to resource_controller
Hello,

I'm trying to deploy a really simple application that uses RC to
Heroku but get a page that says: "App failed to start" and App
boot:exception caught:

/usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/vendor/rack-1.0/rack.rb:17: warning: already
initialized constant VERSION
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:443:in `load_missing_constant':
uninitialized constant ResourceController (NameError)
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:80:in `const_missing'
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:92:in `const_missing'
from /disk1/home/slugs/32603_e857138_9d53/mnt/app/controllers/
addresses_controller.rb:1
....


Have been trying to google for the problem but couldn't find a
solution (maybe it was just me).
Would anyone have a solution to this problem?

TIA,
Elle

Matthew F

unread,
Jul 26, 2009, 4:02:05 PM7/26/09
to resource_controller
uninitialized constant ResourceController (NameError)

You need to include the resource_controller gem see http://docs.heroku.com/gems

elle

unread,
Jul 27, 2009, 6:53:34 PM7/27/09
to resource_controller
Hi Matthew,

I'm actually using RC as a plugin but nevertheless, installed the gem
on heroku, restarted servers and still get the same error:
usr/local/lib/ruby/gems/1.8/gems/actionpack-2.3.2/lib/
action_controller/vendor/rack-1.0/rack.rb:17: warning: already
initialized constant VERSION
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:443:in `load_missing_constant':
uninitialized constant ResourceController (NameError)
from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/
active_support/dependencies.rb:80:in `const_missing'
<...>

Elle


On Jul 27, 6:02 am, Matthew F <mcf1...@gmail.com> wrote:
> uninitialized constant ResourceController (NameError)
>
> You need to include the resource_controller gem seehttp://docs.heroku.com/gems
Reply all
Reply to author
Forward
0 new messages