I believe it has kicked in, but the contexts are different.
What i did is to create an attribute (not db backed) to the class or classes in question that raise errors and that gets passed around to the point the view needs it.
From: Todd <[address removed]>
To: [address removed]
Sent: Fri, January 1,[masked]:04:53 PM
Subject: [ruby-99] customizing exception notifier to list current_user.id
I'm using the exception notifier and restful-authentication plugins on a rails project. I wanted to customize the error message emails that I get from exception notifier. I've been successful except for one item. I'd like to show the current_user id if the user is logged in. However, it appears that at the time the exception notifier is being executed, restful-authentication hasn't kicked in yet as I'm getting the error:
undefined local variable or method `current_user' for #<ActionView::Base:0xb717e9c4>)
Has anyone solved this?
Please Note: If you hit "REPLY
", your message will be sent to everyone
on this mailing list ([address removed])
This message was sent by Todd ([address removed]) from Silicon Valley Ruby Meetup
To learn more about Todd, visit his/her member profile
To unsubscribe or to update your mailing list settings, click here
Meetup Inc. PO Box 4668 #37895 New York, New York[masked] | [address removed]