Sha256: 75a0a1053c88e94cc850aa4d537f48fde167fa9d37f1a8fda5668ccb3340bc20
Contents?: true
Size: 835 Bytes
Versions: 8
Compression:
Stored size: 835 Bytes
Contents
class SocialMailerController < ApplicationController trusty_layout "default", {:only => :create_social_mail} before_filter Filters::RadCaptchaFilter, :only => :create_social_mail no_login_required def create_social_mail mailer_options = { :to => params[:to], :from => params[:from], :from_name => params[:from_name], :message => params[:message], :subject => params[:subject] } RadSocialMailer.deliver_social_mail(mailer_options) head :ok end def social_mail_form 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 end
Version data entries
8 entries across 8 versions & 1 rubygems