RailsCasts Pro episodes are now free!

Learn more or hide this

simonhutchings's Profile

GitHub User: simonhutchings

Comments by

Avatar

Found the solution, add these into the model

liquid_methods :name, :photo, :thumbnail, :panel_thumbnail

def thumbnail
photo(:thumb)
end

def panel_thumbnail
photo(:panel_thumb)
end

Avatar

Does anyone know how I can parse a paperclip object from the model, was trying this, but doesn't work

Have access to the rest of the model, but get this error, when it tries to render the image

Liquid error: undefined method `to_liquid' for #Paperclip::Attachment:0x1183e4e78