Coder Social home page Coder Social logo

Comments (5)

Mange avatar Mange commented on August 30, 2024

Double check your file extensions. I had that issue once when I named the file foo.css.css instead of foo.css.scss.

from roadie.

factor4 avatar factor4 commented on August 30, 2024

The file extension is correct: email.css.scss

Does Roadie read the CSS from the SCSS file or from the precompiled CSS file? My precompiled file /assets/email.css have the correct CSS background:url(/assets...)

from roadie.

Mange avatar Mange commented on August 30, 2024

By default, in Rails 3.1 and 3.2, Roadie will use files from the asset pipeline if it's enabled, otherwise it will use the file system.

I'm guessing that it's using the filesystem instead of the pipeline in your case. Are you using the :css option in the mailer or are you letting Roadie inline <link rel="stylesheet"> elements?

:css option is the recommended one since it's easier to get it right. I want to address these difficulties in a later version, but I'm still not sure how.

from roadie.

factor4 avatar factor4 commented on August 30, 2024

I solved my problem but I don´t know what exactly happen.

I precompiled my assets on my local machine an deployed it to the production server. That seems not to work or I forgot to precompile it after a change. Once I run rake assets:precompile on the production Server everything works as it should.

Sorry for the inconvenience!

from roadie.

Mange avatar Mange commented on August 30, 2024

No problem.

from roadie.

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.