MailyHerald Web UI

Web interface for Ruby on Rails email marketing solution - MailyHerald.

Requirements

Both Ruby on Rails 3.2 and 4 are supported.

Installation

Simply just

gem install maily_herald-webui

or put in your Gemfile

gem "maily_herald-webui"

Usage

Mount WebUI in your application:

# config/routes.rb
mount MailyHerald::Webui::Engine => "/maily_webui"

Customizing

Restricting access

The simplest way to restrict access to Maily WebUI is to use Rails routing constraints:

# config/routes.rb
mount MailyHerald::Webui::Engine => "/maily_webui", :constraints => MailyAccessConstraint.new

Sample MailyAccessConstraint implementation might look like this:

class MailyAccessConstraint
  def matches?(request)
    return false unless request.session[:user_id]
    user = User.find request.session[:user_id]
    return user && user.admin?
  end
end

More Information

For bug reports or feature requests see the issues on Github.

License

LGPLv3 License. Copyright 2013-2015 Sology. http://www.sology.eu