public
Description: A Project Management and Collaboration tool inspired by Basecamp
Home | Edit | New

Using Amazon S3

The nitty gritty

Previously if you wanted to enable Amazon S3 for file storage, you just ticked a box and input your settings in the configuration interface. This is sadly no longer the case, as RailsCollab now uses the Paperclip plugin in order to store files.

Now you need to modify the ProjectFileRevision model in order to enable S3. Specifically, this line:


  has_attached_file :data, :styles => { :thumb => "50x50" }, 
                           :default_url => ''

Note that once you change this to use S3, all files will be invalidated (unlike the previous system). So it is best done on a fresh installation.

For further information, i suggest reading the Paperclip documentation .

Last edited by jamesu, Thu Nov 13 03:05:15 -0800 2008
Home | Edit | New
Versions: