Class: Cms::EmailPagePortletController
- Inherits:
-
PortletController
- Object
- ActionController::Base
- ApplicationController
- ApplicationController
- PortletController
- Cms::EmailPagePortletController
- Defined in:
- app/controllers/cms/email_page_portlet_controller.rb
Instance Method Summary collapse
Methods included from PageHelper
#cms_toolbar, #container, #container_has_block?, #current_page, #render_breadcrumbs, #render_portlet
Methods included from PathHelper
#cms_connectable_path, #cms_index_path_for, #cms_index_url_for, #cms_new_path_for, #cms_new_url_for, #edit_cms_connectable_path
Methods included from ErrorHandling
#handle_server_error, included
Instance Method Details
#deliver ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'app/controllers/cms/email_page_portlet_controller.rb', line 3 def deliver = EmailMessage.new(params[:email_message]) .subject = @portlet.subject .body = "#{params[:url]}\n\n#{message.body}" if .save redirect_to_success_url else redirect_to_failure_url_with_errors(.errors) end end |