Mange / roadie-rails

Making HTML emails comfortable for the Rails rockstars
MIT License
367 stars 66 forks source link

Stylesheets in sub-folders cannot be found by Asset Pipeline Provider #16

Closed jawa closed 10 years ago

jawa commented 10 years ago

I had previously followed the example in the standard Roadie gem to have a stylesheet link tag like this: <link rel="stylesheet" type="text/css" href="/assets/emails/rock.css"> with the rock.css file placed in app/assets/stylesheets/emails folder. But after upgrading and switching to Roadie-Rails this no longer worked, nor would <%= stylesheet_link_tag 'emails/rock' %> work. After some debugging I found the issue to be that the AssetPipelineProvider#normalize_asset_name strips the whole path. My workaround was to move the file to the stylesheets folder directly, but perhaps it is possible to support this use case as well?

Mange commented 10 years ago

I've pushed a fix to master. A patch release should happen soon in case you don't want to switch to master.

Thank you for reporting this!

jawa commented 10 years ago

Thank you for fixing! I think I'll wait for the next release.

Mange commented 10 years ago

I just released 1.0.3. Thank your for waiting so patiently.