This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
DatabaseOrFilesystemStorage
Storing your images in the filesystem or the database each have their pros and cons. I won’t go into those here, I will just give you information about how to go about making either option work.
The recommended approach is file system storage. Declaration is simple:
class Photo < ActiveRecord::Base acts_as_fleximage do image_directory ‘path/to/images’ end endTo store your images in the DB, simply include a binary column in your database with a special name: image_file_data. Fleximage will see that column on your model, and automatically store its images there. Then you can leave the image_directory off completely, making your class look more like:






