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 (
ActivatingTheModel
You need to let your model know it should be Fleximage friendly. Lets say you have a model for photos.
# app/models/photo.rb
class Photo < ActiveRecord::Base
acts_as_fleximage :image_directory => 'public/images/uploaded_photos'
end
The :image_directory option tells the plugin where to store your master images. This value is relative to your application root, and doesn’t need to be in your public directory if you don’t want it to be. This is where the source images will be that all your templates start with.
There are many other options for your model. Refer to the list of ModelClassAccessors more information on all class level options.
Note that this illustrates how to store images using the filesystem, the recommended approach. If you really want DB storage, check out the DatabaseOrFilesystemStorage page.






