Skip to content

Is there a way to force CSS reload in the rails preview #7

@DannyBen

Description

@DannyBen

I am using the rails mailer preview to view my mailer output when designing.
I am opening a url like this in the browser:
http://localhost:3000/rails/mailers/notifier/invitation

The CSS styles are properly inlined, but when I change something in the CSS, the preview does not change.

I am using a stylesheet_path 'app/assets/stylesheets/mailers' and the only way to force reload, is to change this line to something else (that does not exist) and then change it back - only then, the HTML is regenerated properly.

(BTW - since the rails preview is using an iframe, I also tried loading it with the "liberated" iframe, same result).

Is this a bug?
Is there another, better way to preview the HTML mail while designing it?

Thanks (and other than this little thing, great gem).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions