comfy/comfy-blog

undefined method `enable_caching'

Closed this issue · 3 comments

lgs commented

I get this error

NoMethodError in Cms_admin/pages#index

Showing /home/lsoave/.rvm/gems/ruby-1.9.2-p136/gems/sofa_blog-0.0.1/app/views/sofa_blog/_head.html.erb where line #1 raised:

undefined method `enable_caching' for #

Extracted source (around line #1):
1: <%= stylesheet_link_tag :blog, :cache => ('_blog' if ComfortableMexicanSofa.config.enable_caching) %>

with this stack :

lsoave@ubuntu:~/rails/github/gitwatcher$ grep sofa Gemfile.lock
    comfortable_mexican_sofa (1.3.8)
    sofa_blog (0.0.1)
      comfortable_mexican_sofa (>= 1.0.46)
      comfortable_mexican_sofa (>= 1.0.46)
  comfortable_mexican_sofa (= 1.3.8)
  sofa_blog
lsoave@ubuntu:~/rails/github/gitwatcher$
lgs commented

... my temporary workaround was to disable cache inside sofa_blog-0.0.1 gem.

into the file

gems/sofa_blog-0.0.1/app/views/sofa_blog/_head.html.erb
i just did :

<%= stylesheet_link_tag :blog %>

instead of

<%= stylesheet_link_tag :blog, :cache => ('_blog' if ComfortableMexicanSofa.config.enable_caching) %>

This has been fixed when updating to Rails 3.1