Just in case anyone is also dealing with this "hash_secret" issue (with Hobo 1.3, Rails3), note that it is an open issue at Thoughtbot's repo here:
https://github.com/thoughtbot/paperclip/issues/450 For anyone who needs an immediate patch, there is a forked version here that deals with the hash_secret problem: https://github.com/jeanmartin/paperclip.git So, at a pinch, your Gemfile can reference this using: gem 'paperclip', :git => "git://github.com/jeanmartin/ paperclip.git", :branch => "master" As Bryan Larsen kindly pointed out, Paperclip versions up to 2.3.9 appear to have a dependency locked to activesupport v2.3.2. Paperclip versions 2.3.10 and later allow activesupport v2.3.2 and later (and are therefore okay for Rails 3). Tim On Mar 30, 4:48 pm, RanzQ <[email protected]> wrote: > Thanks for the answer, that probably would have fixed it, that seems > to be a key for the filepath hash. > > I ended up using attachment_fu plugin which had some problems too with > the new ruby but I got it working finally. > > On 30 maalis, 18:37, Matt Jones <[email protected]> wrote: > > > > > > > > > On Mar 30, 2011, at 6:49 AM, RanzQ wrote: > > > > Hi, > > > > I followed this tutorial: > > > >http://cookbook.hobocentral.net/plugins/paperclip_with_hobo > > > > But when I try open the new-page of my model, I get this error: > > > > Unable to generate hash without :hash_secret > > > > It seems to be raised from the hash() method in Paperclip::Attachment. > > > > What should I do to fix this? > > > Looks like you'll need to pass :hash_secret to the has_attached_file method > > in your model. > > > --Matt Jones -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
