Giter Site home page Giter Site logo

malina's Introduction

Malina

CircleCI

Interface for browsing sent emails.

Installation

Add this line to your application's Gemfile:

gem 'malina', group: :development

And then execute:

$ bundle

Or install it yourself as:

$ gem install malina

1. Generate initialize file

rails g malina:install

it generates malina_emails.rb in your application's folder config/initializers/

ActionMailer::Base.register_interceptor(Malina::EmailInterceptor) if Rails.env.development?

Malina::Config.layout = 'malina'

2. Generate migration file

rails g malina:migration

run migration

rails db:migrate

3. Mount route

add this line to your config/routes.rb

mount Malina::Engine => '/backroom/emails', as: :malina

you can change this url of course

Usage

and now interface is available at your's app url, for example localhost:3000/backroom/emails

Alt text

Alt text

Views

Since Malina is an engine, all its views are packaged inside the gem. These views will help you get started, but after some time you may want to change them. If this is the case, you just need to invoke the following generator, and it will copy all views to your application:

rails g malina:layout

makes Layout available for changes

rails g malina:views

the other views, too

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/mpakus/malina

License

The gem is available as open source under the terms of the MIT License.

malina's People

Contributors

dependabot[bot] avatar mpakus avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.