I would like to see a :
class Asset < ActiveRecord::Base
belongs_to :storable_object, :polymorphic => true
end
Then in for instance you user model:
class User < ActiveRecord::Base
...
has_many :images, :as => :storable_object
...
end
Discussion
- I'm not sure on your requirements but have you checked out the attachment_fu plugin?
- the reason for choosing paperclip, is that there is a paperclip howto on git for hobo, so maybe it will be the official attachment plugin for hobo.
Then again, my question for receipt is for a polymorphic model. The attachment plugin is not that important.
/MartOn -
At least there is a generic Rails tutorial on this topic now:
