Class: SocialMailerController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- SocialMailerController
- Includes:
- ShareLayouts::Controllers::ActionController
- Defined in:
- app/controllers/social_mailer_controller.rb
Instance Attribute Summary
Attributes inherited from ApplicationController
#cache, #pagination_parameters, #trusty_config
Instance Method Summary collapse
Methods inherited from ApplicationController
#after_sign_in_path_for, #initialize, #template_name
Methods included from LoginSystem
Constructor Details
This class inherits a constructor from ApplicationController
Instance Method Details
#create_social_mail ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'app/controllers/social_mailer_controller.rb', line 7 def = { to: params[:to], from: params[:from], from_name: params[:from_name], message: params[:message], subject: params[:subject], } end |
#social_mail_form ⇒ Object
17 18 19 20 21 22 23 24 25 |
# File 'app/controllers/social_mailer_controller.rb', line 17 def render template: 'rad_social_mailer/social_mail_form', layout: false, locals: { email_message: params[:email_message], email_subject: params[:email_subject], email_action_url: params[:email_action_url], } end |