GithubHelp home page GithubHelp logo

code-and-effect / effective_email_templates Goto Github PK

View Code? Open in Web Editor NEW
38.0 38.0 9.0 239 KB

Create Liquid-based email templates in your rails app

License: MIT License

Ruby 88.05% HTML 7.42% Liquid 0.21% Haml 2.33% JavaScript 1.06% CSS 0.93%

effective_email_templates's People

Contributors

danajanssen avatar jfeaver avatar matt-riemer avatar pnghai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

effective_email_templates's Issues

routing issue with mounted engine

Hello,

I got an error when trying the step 5 from the readme

Visit localhost:3000/admin/email_templates in your browser to edit templates

It seems that the routes aren't loaded when mounting the engine here is a screenshot from available routes:
effective_email

The test was made using:

  • Ruby 2.3
  • Rails 4.2.x

Template error rails 5

ActionView::MissingTemplate (Missing template template_mailer/welcome_email with "mailer". Searched in:

  • "template_mailer"
    ):

not working in rails 5.

i have setup this gem this error came No route matches [GET] "/admin/email_templates" how to resolve this please help

Rails 7: uninitialized constant EffectiveEmailTemplates::Engine::HasOneEmailReview

Hey

There is an issue with Rails 7:

/home/user/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/effective_email_templates-1.2.1/lib/effective_email_templates/engine.rb:16:in `block (2 levels) in <class:Engine>': uninitialized constant EffectiveEmailTemplates::Engine::HasOneEmailReview
        ActiveRecord::Base.extend(HasOneEmailReview::Base)
                                  ^^^^^^^^^^^^^^^^^ (NameError)

Add updated_at timestamp

Sometimes it is useful to know when email template was updated last time. For example, if all email templates have similar updated_at value, that means that most likely templates were not changed in DB since last import/regeneration.

I have a situation now when I need to make sure that appropriate templates are updated considering recent changes in templates .liquid files, but I don't know if they have already been changed through admin pages, because I don't have updated_at values.

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.