documentcloud / jammit

Industrial Strength Asset Packaging for Rails
http://documentcloud.github.com/jammit/
MIT License
1.16k stars 197 forks source link

undefined method 'include_stylesheets' #74

Closed leemhenson closed 13 years ago

leemhenson commented 13 years ago

Hi

Rails 3, rvm 1.9.2-head with gemset.

Gemfile includes:

gem 'jammit', :git => 'git://github.com/documentcloud/jammit.git'

I've added a config/assets.yml which is a direct copy of the example in the gem readme file. I've added to my layout haml:

= include_stylesheets :common, :workspace, :media => 'all'
= include_javascripts :workspace

It fails on the include_stylesheets call here. I guess it's because the helper has been loaded correctly for some reason? I'm towards the bottom of the ruby/rails learning curve at the moment so perhaps I've missed some essential configuration somewhere. Any ideas welcomed!

If it is of any use, running rake routes does list the jammit asset route. So it would appear that it's hooked in to the framework to some extent.

Cheers Lee

jashkenas commented 13 years ago

I'm afraid that I'm using neither Rails 3, nor Ruby 1.9.2, RVM, or Haml ... Rails 2.3.9 + Ruby 1.8.7 + System RubyGems + ERB, over here -- so I don't think I'll be much help. Perhaps someone with a more similar setup will have a better idea of how to assist.

leemhenson commented 13 years ago

I should have known that turning it off and on again would have fixed it. I guess I needed to restart Webrick.

antani commented 13 years ago

I am facing the same error - @leemhenson, what did you do to fix the error ? I restarted Webrick several time but the issue remains ?

leemhenson commented 13 years ago

By the looks of my earlier reply, I guess I restarted the browser. I don't recall anything else, sorry.