Paper Clip and Hobo

36 views
Skip to first unread message

Benjamin

unread,
Jul 12, 2011, 2:56:25 PM7/12/11
to Hobo Users
Hello,

I'm relatively new to Ruby, but I was following along with the
tutorials at a pretty decent clip when I decided I'd try to add an
image field for a particular model. I found the instructions here:
http://cookbook.hobocentral.net/plugins/paperclip_with_hobo

I followed along, and with a few bumps thought I finally had to ready
to go, but I kept getting this error message, "Unable to generate hash
without :hash_secret" so I decided i'd pass this option to my model
like this:

class Machine < ActiveRecord::Base

hobo_model # Don't put anything above this

fields do
name :string, :unique
price :integer
timestamps
end

has_attached_file :photo, :hash_secret


And I now get this error: "can't convert Symbol into Hash"

I've read a couple places about this error but I haven't found any
fixes that work, am I just using an outdated version of the git from
the tutorial with the recent upgrades to Hobo?



Bob Sleys

unread,
Jul 12, 2011, 3:15:22 PM7/12/11
to hobo...@googlegroups.com
Which versions of Hobo, Hobo_paperclip and paperclip are you using?

Bob

Benjamin

unread,
Jul 20, 2011, 12:45:05 PM7/20/11
to hobo...@googlegroups.com
hobo (1.3.0)
Paperclip 1.5.2

Paper Clip with hobo from this git : it://github.com/tablatom/paperclip_with_hobo.git
I cannot seem to find the version number inside of the plugin anywhere, it's just three files, the init.rb the taglib and the readme

Benjamin

unread,
Jul 26, 2011, 11:02:10 AM7/26/11
to hobo...@googlegroups.com
If anyone happens to have this problem and is generating a new hobo app this branch of paperclip fixed my problem:

gem 'paperclip', :git => "git://github.com/jeanmartin/paperclip.git", :branch => "master" 

A co-worker found a github reference to the above fix and I thought I should share as it seems the Hobo group is a bit better indexed.

I also thought I posted a response here listing my versions, but it was never approved in this discussion?

Bob Sleys

unread,
Jul 26, 2011, 11:09:09 AM7/26/11
to hobo...@googlegroups.com
Glad you got it fixed. I missed your earlier response somehow.
Reply all
Reply to author
Forward
0 new messages