Displaying 1 result from an estimated 1 matches for "send_reject_notice".
2010 Nov 19
0
how to include view helpers in both action_controller and action_mailer templates (rails 3)
...ave put the method in the
application helper (app/helpers/application_helper.rb). It works in
the view templates called from action_controller and descendents, but
not action_mailer. The action mailer templates return something like
this (from an rspec test):
Failures:
1) Request should have a send_reject_notice! method which sends a
rejection notice and saves
Failure/Error: @request.send_reject_notice!
undefined method `markdown'' for #<#<Class:0x000000060441f0>:
0x00000006041d88>
# ./app/views/request_mailer/reject_notice.html.erb:9:in
`_app_views_request_mailer_reject_...