global error handling in rails

M

Michael P. Soulier

--H+z4JyTZRruR1sYt
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hey people,

I'm having a problem implementing global error handling in Rails.

I using the Rails bible*, and on page 464 it has some code for implementing
email notification of such errors via the rescue_action_in_public method
globally in application.rb. I've implemented it, but I'm seeing this in my
logs

NameError (uninitialized constant ActionWebService::Dispatcher::ActionContr=
oller
::UnknownAction):
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_suppor=
t/dep
endencies.rb:100:in `const_missing'
/app/controllers/application.rb:14:in `rescue_action_in_public'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.5/lib/action_controll=
er/re
scue.rb:33:in `rescue_action'

And I'm getting "Application error (Rails)" in the browser.

Any suggestions?

Thanks,
Mike

*Agile Web Development with Rails
--=20
Michael P. Soulier <[email protected]>
"Any intelligent fool can make things bigger and more complex... It
takes a touch of genius - and a lot of courage to move in the opposite
direction." --Albert Einstein

--H+z4JyTZRruR1sYt
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFFFykEKGqCc1vIvggRAt5MAKCMR+n5b4+XJUlm7A+EIH+B6Y/4WACgwpHZ
O2OonMRu4eBHhA3gxkSKkZM=
=iYNM
-----END PGP SIGNATURE-----

--H+z4JyTZRruR1sYt--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,983
Messages
2,570,187
Members
46,747
Latest member
jojoBizaroo

Latest Threads

Top