I've been having trouble getting the gallery extension working. This
is a brand new install, so perhaps it's a version compatibility issue.
After following the installation instructions, and creating my first
gallery, I tried uploading a single image (JPG). I got the following
The error occurred while evaluating nil.gallery_id=):
Here's the code in app/models/gallery_item.rb:38-40:
before_thumbnail_saved do |item, thumbnail|
thumbnail.gallery_id = item.gallery_id
So, thumbnail is assigned nil. I checked attachment_fu and it seems
like it only expects a single argument to the block (thumbnail). I
tried all sorts of alternative ways of hooking this in and failed.
Oddly enough, even the debugger got sick (with a stack error).
Eventually I simply commented out the line and tried again --
surprisingly, everything seems to work (even with gallery_id set to
nil for the thumbnail items)!
Any ideas? I'm a little nervous about commenting out code when I don't
know what it's for. Alternatively, less code is better :-)
Aloha a hui hou,
Ken Mayer / [EMAIL PROTECTED] / 808-722-6142 / http://www.bitwrangler.com/
Radiant mailing list