Comments (13)
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.
same - are you on cedar stack too?
from premailer-rails.
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.
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.
Are you actually using the asset pipeline or are all the stylesheets in public/?
from premailer-rails.
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.
You replied by email? Attachments don't work on GitHub as far as I know.
from premailer-rails.
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.
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.
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.
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.
Do you have the repo somewhere publicly?
from premailer-rails.
Closing this since I don't think this is an issue with the gem itself.
from premailer-rails.
Related Issues (20)
- rails 6 upgrade HOT 5
- Webpacker Support HOT 33
- Failing test HOT 1
- Allow Rails 6 beta2 HOT 4
- Didnt't work immediately with Rails version 5.0.2 HOT 2
- Encoding changes when premailer is ran HOT 11
- Unable to use the premailer-rails with rails version 3.2.22 HOT 1
- Inlined stylesheet is incorrectly encoded HOT 2
- can't modify frozen String HOT 4
- RTL support HOT 1
- bump premailer version HOT 2
- skip_premailer: false does not work HOT 1
- Allow NetworkLoader to be configured with support for proxied requests HOT 2
- Webpack and Sidekiq not sending emails on non-test environments HOT 1
- Stylesheets not working with email layout on haml HOT 1
- Looking for new maintainers? HOT 12
- Support CSSParser option rule_set_exceptions HOT 2
- Add Propshaft support
- Warning: already initialized constant Net::ProtocRetryError HOT 1
- "no implicit conversion of URI::HTTPS into String" exception after upgrading to 1.12.0 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from premailer-rails.