Closed vikask closed 11 years ago
I'm sorry, I don't quite understand the problem. The method lazy_require
is not in the cocaine codebase, and this stacktrace actually deals with a library called coffee-filter
(presumably this one: https://github.com/paulnicholson/coffee-filter). How does this apply to cocaine?
ok..thanks
i think this is caused by Haml(4.0). try using the older version of Haml by inserting this line into your gemfile. gem "haml", "< 4.0" and run "bundle update".
Thanks for the update. Hopefully someone with the same problem will see this.
I did! Thank you.
When i'm adding gem "cocaine", "0.3.2" and run this application.then getting this error.....
"/usr/local/lib/ruby/gems/1.9.1/gems/coffee-filter-0.1.1/lib/coffee-filter/coffeescript.rb:8:in'
<module:Coffeescript>': undefined method
lazy_require' for Coffee::Filter::Coffeescript:Module (NoMethodError) from /usr/local/lib/ruby/gems/1.9.1/gems/coffee-filter-0.1.1/lib/coffee-filter/coffeescript.rb:5:in<module:Filter>' from /usr/local/lib/ruby/gems/1.9.1/gems/coffee-filter-0.1.1/lib/coffee-filter/coffeescript.rb:4:in
module:Coffee' from /usr/local/lib/ruby/gems/1.9.1/gems/coffee-filter-0.1.1/lib/coffee-filter/coffeescript.rb:3:in<top (required)>' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in
require' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:inblock in require' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:236:in
load_dependency' from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:inrequire' from /usr/local/lib/ruby/gems/1.9.1/gems/coffee-filter-0.1.1/lib/coffee-filter.rb:1:in
<top (required)>' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/runtime.rb:68:inrequire' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/runtime.rb:68:in
block (2 levels) in require' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/runtime.rb:66:ineach' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/runtime.rb:66:in
block in require' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/runtime.rb:55:ineach' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler/runtime.rb:55:in
require' from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.2.3/lib/bundler.rb:128:inrequire' from /home/pht-20/projects/my_family_histree/config/application.rb:13:in
<top (required)>' from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.12/lib/rails/commands.rb:53:inrequire' from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.12/lib/rails/commands.rb:53:in
block in <top (required)>' from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.12/lib/rails/commands.rb:50:intap' from /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.2.12/lib/rails/commands.rb:50:in
<top (required)>' from script/rails:6:inrequire' from script/rails:6:in