Closed mrwokkel closed 13 years ago
I beg to differ.
We happen to experience the same behaviour
Solved the issue - which wasn't an issue.
If you're using "embed_assets", and you wish to precompile the MHTML stylesheet variants, you must specify the "base-url".
Options: -o, --output PATH output folder for packages (default: "public/assets") -c, --config PATH path to assets.yml (default: "config/assets.yml") -u, --base-url URL base URL for MHTML (ex: "http://example.com") -f, --force force a rebuild of all assets -v, --version display Jammit version
i.e. provide Jammit with the 'base url'
The above commit should give you a better error message when misconfigured like this.
Thank you for implementing this!
Jammit css and js not load
ActionView::Template::Error (undefined method include_stylesheets' for #<#<Class:0x0000000419c6d0>:0x000000041a35c0>): 2: %html 3: %head 4: %title= Settings.app_name 5: = include_stylesheets :canvas, :media => 'all' 6: = include_javascripts :canvas 7: = javascript_include_tag 'home/custom.js.coffee' 8: = csrf_meta_tags app/views/layouts/home.html.haml:5:in
_app_views_layouts_home_html_haml__2155835962579908780_34448340'
app/controllers/website/home_controller.rb:11:in `home'
I did all steps :- http://stackoverflow.com/questions/24554448/jammit-gem-error-on-production
Please help.Thanx
Jammit.package! does not generate mhtml variant.