Class: NotifierApiController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- NotifierApiController
- Defined in:
- app/controllers/notifier_api_controller.rb
Instance Method Summary collapse
-
#v2 ⇒ Object
Under Rails 2.X, matches /notifier_api/v2/notices automatically.
Instance Method Details
#v2 ⇒ Object
Under Rails 2.X, matches /notifier_api/v2/notices automatically
3 4 5 6 7 8 |
# File 'app/controllers/notifier_api_controller.rb', line 3 def v2 notice = Notice.from_v2_xml(request.raw_post) notice.save! render :text => "Successfully received error from hoptoad_notifier v2!" end |