Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Jbuilder support #63

@jims3ne1

Description

@jims3ne1

I'm trying to use cache_digest gem with jbuilder (currently using Rails 3.x)
I can't seem to make it work like this.

cache @videos do 
  json.partial! "api/videos/video", collection: @videos, as: :video
end

It throws an error:

NoMethodError - undefined method `length' for nil:NilClass: actionpack (3.2.18) lib/action_view/helpers/cache_helper.rb:52:in`fragment_for' cache_digests (0.3.1) lib/cache_digests/fragment_helper.rb:22:in `fragment_for'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions