nesquena / rabl

General ruby templating with json, bson, xml, plist and msgpack support
http://blog.codepath.com/2011/06/27/building-a-platform-api-on-rails/
MIT License
3.64k stars 334 forks source link

ActionView::Template::Error (uninitialized class variable @@cache in Rabl::Digestor) in rails 5.0.0.beta3 #663

Closed SudhakarPunniyakotti closed 8 years ago

SudhakarPunniyakotti commented 8 years ago

I have enabled the cache using the rake task rails dev:cache in my development.

While caching the object in rabl getting the below error

ActionView::Template::Error (uninitialized class variable @@cache in Rabl::Digestor
Did you mean?  catch):
krzysiek1507 commented 8 years ago

@sudhakar377114 this should be fixed with #653 Could you check if the problem still exists with a master?

SudhakarPunniyakotti commented 8 years ago

Thank you @krzysiek1507. Updated the gem gem 'rabl', github: "nesquena/rabl" works fine.

krzysiek1507 commented 8 years ago

@sudhakar377114 could you please close issue?

databyte commented 8 years ago

Have you guys had luck with caching in Rails 5? Does it work as intended?

SudhakarPunniyakotti commented 8 years ago

@databyte yes, its works fine in rails5 beta3. I used this for object caching in view.