Topic: undefined method `controller_path' for SiteMailer:Class
I am trying to use the "render" method in a view under a SiteMailer class and it spits out:
undefined method `render' for SiteMailer:Class
When i prepend the render method with ActionController::Base, it still doesn't work and spits out:
NoMethodError in Events#postShowing app/views/site_mailer/alert.rhtml where line #3 raised:
undefined method `render' for ActionController::Base:Class
Extracted source (around line #3):
1: Heads up!
2: <% if @alert.type.downcase == 'event' %>
3: <% ActionController::Base.render :partial => 'event' %>
4: A brand spankin' new event has been posted.
5:
6: *************************** NEW EVENT LISTING! ***************************RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace#{RAILS_ROOT}/app/views/site_mailer/alert.rhtml:3:in `_run_rhtml_alert'
#{RAILS_ROOT}/app/controllers/post_controller.rb:209:in `send_alerts'
#{RAILS_ROOT}/app/controllers/post_controller.rb:192:in `send_alerts'
#{RAILS_ROOT}/app/controllers/post_controller.rb:69:in `post'
#{RAILS_ROOT}/app/controllers/post_controller.rb:62:in `post'
-e:4
Help...what's the deal?