ruby on rails - Using Paperclip to Form Image Database -


i have database called stories. can create story using form , upload database. have show page display name of store , link view it.

i want same things pictures. want there 2 separate databases. tutorials come across tend show how add avatars user model. don't want that. want create whole new second database. know of tutorial out there this? have been looking days. possible?

i think want store pictures in individual database table not other database right?

there's same thing add avatar user model. create model named picture, , set column store image file name. rest following paperclip doc fill picture model.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -