-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
I'm hoping to find a way to attach non-image objects to a model. The example at hand is an html file.
I'm also trying to do the attachment within a model instead of using the uploader.
Do you have any suggestions for doing these things?
This is how I'm using it
--------------
publisher.rb
assetable :ad_block # the html chunk
Then just for the sake of testing things, I opened the console, and attempted (based largely on my experience with carrier wave):
publisher.ad_block = File.open("ad_block.html")
ang get this error:
NoMethodError: undefined method `id' for #File:ad_block.html
Any suggestions?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels