Skip to content

Instantly share code, notes, and snippets.

@chopmo chopmo/gist:2874877

Created Jun 5, 2012
What would you like to do?
irb(main):002:0> p =
irb(main):005:0> p.image ="/Users/jtj/sample_assets/a.JPG")
# Delay while versions are uploaded
irb(main):009:0> p.image.url
irb(main):011:0> p.image.url(:thumbnail)
=> ""

This comment has been minimized.

Copy link

sunny0425 commented Mar 13, 2013

For Line 2-3, I think maybe you should change to in order to auto close the file:"/Users/jtj/sample_assets/a.JPG") do |f|
p.image = f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.