Module: Locomotive::ErrorsHelper
- Defined in:
- app/helpers/locomotive/errors_helper.rb
Instance Method Summary collapse
Instance Method Details
#error_title ⇒ Object
4 5 6 |
# File 'app/helpers/locomotive/errors_helper.rb', line 4 def error_title @title || t(:title, scope: "locomotive.errors.#{action_name.gsub('error_', '')}") end |
#no_site_message(error_type) ⇒ Object
18 19 20 |
# File 'app/helpers/locomotive/errors_helper.rb', line 18 def (error_type) t(error_type, host: h(request.host), scope: 'locomotive.errors.no_site.message') end |
#no_site_message_and_link ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'app/helpers/locomotive/errors_helper.rb', line 8 def = Locomotive.config.host ? { host: Locomotive.config.host } : { only_path: true } if current_locomotive_account [(:add_domain), sites_url()] else [(:sign_in), sign_in_url()] end end |