Module: Railsui::MailHelper
- Defined in:
- app/helpers/railsui/mail_helper.rb
Instance Method Summary collapse
- #email_action(action, url, options = {}) ⇒ Object
- #email_callout(&block) ⇒ Object
- #spacer(amount = 16) ⇒ Object
Instance Method Details
#email_action(action, url, options = {}) ⇒ Object
7 8 9 10 11 12 |
# File 'app/helpers/railsui/mail_helper.rb', line 7 def email_action(action, url, ={}) align = [:align] ||= "left" theme = [:theme] ||= "primary" fullwidth = [:fullwidth] ||= false render "rui/shared/email_action", align: align, theme: theme, action: action, url: url, fullwidth: fullwidth end |
#email_callout(&block) ⇒ Object
14 15 16 |
# File 'app/helpers/railsui/mail_helper.rb', line 14 def email_callout(&block) render "rui/shared/email_callout", block: block end |
#spacer(amount = 16) ⇒ Object
3 4 5 |
# File 'app/helpers/railsui/mail_helper.rb', line 3 def spacer(amount = 16) render "rui/shared/email_spacer", amount: amount end |