-
Notifications
You must be signed in to change notification settings - Fork 4
rdetert/FormFly
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
FormFly is a demo for Rails 3 that uses DragonFly and Uploadify This version uses a technique where intermediary images are saved to a separate ImageUpload model while the server waits for the Post to be submitted. To Install $ bundle install $ rake db:migrate $ rails s Go to localhost:3000 ------------------------------- TODO: 1. Add Flash Detection 2. Video Uploads 3. Implement Resque to clean up stale SessionWorkaround objects and abandoned files. ------------------------------- CHANGELOG: January 28, 2011 1. Completely re-wrote the 'edit' portion 2. Session variables were disappearing randomly (no idea why). As a workaround, I made my own mini session handling using ActiveRecord. Session variables would disappear and reappear between requests about 10% of the time, so I added a SessionWorkaround model that holds the action state, as well as the session_id. The session_id doesn't appear to change at all. I tried using an ActiveRecord Session Store, but this caused issues with the Uploadify Middleware workaround. January 23, 2011 1. Added form edit 2. Verified it works in production mode in Mongrel/WebBrick/Passenger --- Resources: http://github.com/markevans/dragonfly http://groups.google.com/group/dragonfly-users http://www.glrzad.com/ruby-on-rails/using-uploadify-with-rails-3/ http://www.uploadify.com/documentation/methods/uploadifysettings/ --- Thanks to Daihua for helping me implement Uploadify.
About
Form Uploads for Rails 3 using Dragonfly and Uploadify.
Resources
Stars
Watchers
Forks
Packages 0
No packages published