Giter Site home page Giter Site logo

Comments (13)

fphilipe avatar fphilipe commented on May 26, 2024

Which rails version? I’m using it with 3.1.1 on Heroku without any problems. Haven’t tested 3.2 yet.

from premailer-rails.

mickeyren avatar mickeyren commented on May 26, 2024

same - are you on cedar stack too?

from premailer-rails.

fphilipe avatar fphilipe commented on May 26, 2024

I'm on the cedar stack, too.

Can you show some code? Are you including any CSS files in the email html?

from premailer-rails.

mickeyren avatar mickeyren commented on May 26, 2024

Hi Philipe

Thanks for trying to help.

Code is really simple:


%html

= stylesheet_link_tag 'application', :media => 'screen'

%body
= yield


actually its not just heroku - as long as im running in production its going to choke see screenshot - http://d.pr/ePMW

the application.css is absolutely in the public/assets folder.

Maybe its some setting i need to set in the application.rb or production.rb?

On Feb 11, 2012, at 12:18 AM, Philipe Fatio wrote:

I'm on the cedar stack, too.

Can you show some code? Are you including any CSS files in the email html?


Reply to this email directly or view it on GitHub:
https://github.com/fphilipe/premailer-rails3/issues/20#issuecomment-3908665

from premailer-rails.

fphilipe avatar fphilipe commented on May 26, 2024

Are you actually using the asset pipeline or are all the stylesheets in public/?

from premailer-rails.

mickeyren avatar mickeyren commented on May 26, 2024

im using the asset pipeline - im attaching the 2 configuration files here.

really appreciate you trying to help me out.

On Feb 11, 2012, at 2:46 AM, Philipe Fatio wrote:

Are you actually using the asset pipeline or are all the stylesheets in public/?


Reply to this email directly or view it on GitHub:
https://github.com/fphilipe/premailer-rails3/issues/20#issuecomment-3912018

from premailer-rails.

fphilipe avatar fphilipe commented on May 26, 2024

You replied by email? Attachments don't work on GitHub as far as I know.

from premailer-rails.

mickeyren avatar mickeyren commented on May 26, 2024

Oh

sorry, here is my application.rb - http://pastebin.com/xGAX7Pw4

and my production.rb - http://pastebin.com/kEu2HZY4

On Feb 11, 2012, at 4:11 AM, Philipe Fatio wrote:

You replied by email? Attachments don't work on GitHub as far as I know.


Reply to this email directly or view it on GitHub:
https://github.com/fphilipe/premailer-rails3/issues/20#issuecomment-3913440

from premailer-rails.

fphilipe avatar fphilipe commented on May 26, 2024

I don't understand. Are you using the asset pipeline (placing the assets in app/assets) or not (placing them in public/)?

Also, why aren't you using Bundler for the gem dependencies?

from premailer-rails.

mickeyren avatar mickeyren commented on May 26, 2024

My assets are in app/assets/stylesheets and I am using bundler.

Not sure how I got you that impression I'm not. But if you look at application.rb line 50:

# Enable the asset pipeline
config.assets.enabled = true

ah, probably because you saw these lines:

config.gem 'bson_ext', :version=>'1.0.4', :lib => false
config.gem 'stringex'

I forgot why i had them there but at some point i think i needed to put them there to make those 2 gems work - but definitely using Bundler.

On Feb 11, 2012, at 5:19 AM, Philipe Fatio wrote:

I don't understand. Are you using the asset pipeline (placing the assets in app/assets) or not (placing them in public/)?

Also, why aren't you using Bundler for the gem dependencies?


Reply to this email directly or view it on GitHub:
https://github.com/fphilipe/premailer-rails3/issues/20#issuecomment-3914474

from premailer-rails.

mickeyren avatar mickeyren commented on May 26, 2024

Philippe,

One thing works though - if i put my css styes embed in the document ie,

<style>/\* my style here */</style>

Premailer does it job nicely.

Though I really wish i could get linking to styles work since this is an extra step that I have to make.

On Feb 11, 2012, at 5:19 AM, Philipe Fatio wrote:

I don't understand. Are you using the asset pipeline (placing the assets in app/assets) or not (placing them in public/)?

Also, why aren't you using Bundler for the gem dependencies?


Reply to this email directly or view it on GitHub:
https://github.com/fphilipe/premailer-rails3/issues/20#issuecomment-3914474

from premailer-rails.

fphilipe avatar fphilipe commented on May 26, 2024

Do you have the repo somewhere publicly?

from premailer-rails.

fphilipe avatar fphilipe commented on May 26, 2024

Closing this since I don't think this is an issue with the gem itself.

from premailer-rails.

Related Issues (20)

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.