Rackamole and Sinatra

7 views
Skip to first unread message

Kevin Lawver

unread,
Jan 6, 2010, 12:19:01 PM1/6/10
to Rackamole
I've successfully set up a couple Rails apps with Rackamole and am
loving it so far (the only hiccup was that it didn't like my
MongoDB :database config option - but that was easily fixed by giving
it :db_name instead - now it works great with wackamole).

Now I'm working on my Sinatra apps, and it's throwing the following
error:

uninitialized constant ActionView::Base::ActionController

Here's what seems to be the relevant piece of the stack from
Passenger:

0 /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/
active_support/dependencies.rb 105 in `const_missing'
1 /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/
action_view/base.rb 196 in `cache_template_loading?'
2 /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/
action_view/paths.rb 5 in `type_cast'
3 /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/
action_view/paths.rb 16 in `initialize'
4 /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/
action_view/paths.rb 16 in `map!'
5 /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/
action_view/paths.rb 16 in `initialize'
6 /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/
action_view/base.rb 210 in `new'
7 /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/
action_view/base.rb 210 in `process_view_paths'
8 /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/actionmailer-2.3.5/lib/
action_mailer/base.rb 437 in `template_root='
9 /opt/ruby-enterprise/lib/ruby/gems/1.8/gems/rackamole-0.2.1/lib/
rackamole/alert/emole.rb 5

I'm hoping this is a relatively easy fix... I took a look at emole.rb,
but the answer didn't jump out at me since it looks like ActionMailer
isn't as modular as it should be. I tried hacking up a dummy
ActionController but the errors just piled up so I decided to e-mail
instead of going further down the rabbit hole.

Thanks!

Kevin Lawver

DeRailed

unread,
Jan 9, 2010, 3:15:25 AM1/9/10
to Rackamole
Hi Kevin,

Thanks for the kind words and sorry for the delay. My machine took
a dive and I am barely getting back on track.

The first issue should be fixed as of 0.2.2 and I am on the verge
of pushing 0.2.4 which should break out the dependencies
with the rails mailer. Rackamole now uses pony for sending out
alerts. Let me know if that works a bit better for you.

Thanks,
Fernand

Reply all
Reply to author
Forward
0 new messages