This plugin might solve your problem, and more:
http://svn.rubyonrails.org/rails/plugins/exception_notification
It sends an email to configurable email addresses (yours/your sys-
admin) when errors are raised.
The email contains all kinds of details about the request, including
the referr-url.
Or look at at log4r, and add the info you need to the log-messages.
Stephan
On Apr 12, 1:34 pm, John Honovich
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> When reviewing my logs, every so often I notice an exception where I
> understand the problem but don''t know where the problem is
arising.
>
> Specifically, I can see the controller/action/params being called and
> can identify the problem in the spelling or combination of paramaters.
>
> What I don''t know is from what page is this being called from.
> Sometimes it''s hard to guess where in the app this is being called
from.
>
> Logs don''t seem to show this. What I want to access is the
> request.referer and add it to the log.
>
> Can this be done? Am I missing something?
>
> Thanks,
>
> John
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---