NoMethodError in Admin/tiny_paper#images #5

joepmath opened this Issue Sep 3, 2010 · 4 comments

3 participants


Showing vendor/extensions/tiny_paper/app/views/admin/tiny_paper/_images_sizes.html.haml where line #6 raised:

undefined method `each' for #Proc:0xb6cef840

Problem because '@thumbnails' is a proc and not an array. Fixed by calling 'call' on the proc. do |k, v|


Thanks, this is a huge help. Any idea why both asset.width and asset.height are returning 0 for all my images (so it displays as 0px x 0px)?


Ok, I figured out the "0px x 0px" issue. It's because Paperclipped clone/download wasn't including the ImageSpec library by default. Here's how to fix it.


Thanks for posting this fix could you explain how @thumbnails is a proc, I don't understand how?!


This fix worked for me on 0.9. After that I could upload image again. Any chance of committing it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment