forked from travelpost/mongoid-carrierwave-uploadify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dave South
committed
Sep 9, 2010
1 parent
8365104
commit 86ee015
Showing
2 changed files
with
38 additions
and
256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
h1. Rails 3, Mongoid, Carrierwave, and Uploadify | ||
|
||
This is a demonstration application using: | ||
|
||
* Rails 3.0 — Best web framework ever | ||
* Mongoid — A MongoDB mapper for Rails | ||
* Carrierwave — Upload and attach files to Rails models | ||
* Uploadify — Flash based multi-file uploader | ||
|
||
Other depedencies: | ||
|
||
* RSpec 2.0 — Works well with Mongoid | ||
* JQuery — Prototype replacement, required by Uploadify | ||
* HAML — Much better than writing in ERB | ||
* RemarkableMongoid — Very useful in testing standard Mongoid associations | ||
|
||
|
||
h3. Uploadify | ||
|
||
http://www.uploadify.com/ | ||
|
||
JQuery plugin that uses SWFObject to easily select and upload multiple files. Sensible defaults, good looking default buttons, excellent callback mechanism. | ||
|
||
This project adds rack middleware to correctly pass session data into Rails as well as properly handle Javascript calls using respond_to. It also uses RJS to dynamically update the browser as each image is uploaded and a thumbnail is created. | ||
|
||
|
||
h3. Carrierwave | ||
|
||
http://github.com/jnicklas/carrierwave | ||
|
||
Uploading mechanism using Rack Middleware to handle accept uploads and "mount" them to the model. Carrierwave is best at isolating all uploading functions from the model it's being attached to. Image is the mount point inside the photo model. The photo model is an embedded document inside the story model. | ||
|
||
|
||
h3. Mongoid | ||
|
||
http://mongoid.org/ | ||
|
||
Mongoid is an excellent (and we think the best) ORM for MongoDB. It enables embedded documents as well as ActiveRecord style associations (called references). The documentation is good and is actively developed. It does not interfere with ActiveRecord so projects can use both in parallel. |