Skip to content
Newer
Older
100644 70 lines (38 sloc) 2.93 KB
103b17d README: Added short description of Devise.
Dave South authored Sep 17, 2010
1 h1. Rails 3, Mongoid, Carrierwave, Uploadify, and Devise
86ee015 Updated README
Dave South authored Sep 9, 2010
2
3 This is a demonstration application using:
4
da8e61c Added notes from Jc00ke about adding middleware.
Dave South authored Mar 7, 2011
5 * Ruby 1.9.2 — Best programming language
86ee015 Updated README
Dave South authored Sep 9, 2010
6 * Rails 3.0 — Best web framework ever
7 * Mongoid — A MongoDB mapper for Rails
8 * Carrierwave — Upload and attach files to Rails models
9 * Uploadify — Flash based multi-file uploader
103b17d README: Added short description of Devise.
Dave South authored Sep 17, 2010
10 * Devise - Rack based authentication
86ee015 Updated README
Dave South authored Sep 9, 2010
11
12 Other depedencies:
13
14 * RSpec 2.0 — Works well with Mongoid
68cfe46 Added jQuery-UI for photo sortable support. Photos sort in-browser bu…
Dave South authored Sep 9, 2010
15 * JQuery 1.4.1 — Prototype replacement, required by Uploadify
16 * jQuery-UI 1.8.4 — Used for drag and drop sorting of photos
86ee015 Updated README
Dave South authored Sep 9, 2010
17 * HAML — Much better than writing in ERB
18 * RemarkableMongoid — Very useful in testing standard Mongoid associations
19
622f8b5 Added information on using Amazon S3
Dave South authored Sep 9, 2010
20 Bonus:
21
22 * Configuration to use Amazon S3
86ee015 Updated README
Dave South authored Sep 9, 2010
23
24 h3. Uploadify
25
369db0f Updated README links.
Dave South authored Sep 9, 2010
26 "http://www.uploadify.com/":http://www.uploadify.com/
86ee015 Updated README
Dave South authored Sep 9, 2010
27
28 JQuery plugin that uses SWFObject to easily select and upload multiple files. Sensible defaults, good looking default buttons, excellent callback mechanism.
29
30 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.
31
da8e61c Added notes from Jc00ke about adding middleware.
Dave South authored Mar 7, 2011
32 _*NOTE:*_ There is a Rack middleware located in lib/include that needs to be inserted into the Rails session chain. Take note of adding the directory that contains the middleware to your application.rb's autoload_paths. Also, look in config/initializers/session_store.rb to see how to insert the FlashSessionCookieMiddleware.
86ee015 Updated README
Dave South authored Sep 9, 2010
33
34 h3. Carrierwave
35
369db0f Updated README links.
Dave South authored Sep 9, 2010
36 "http://github.com/jnicklas/carrierwave":http://github.com/jnicklas/carrierwave
86ee015 Updated README
Dave South authored Sep 9, 2010
37
38 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.
39
40
41 h3. Mongoid
42
369db0f Updated README links.
Dave South authored Sep 9, 2010
43 "http://mongoid.org/":http://mongoid.org/
86ee015 Updated README
Dave South authored Sep 9, 2010
44
45 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.
622f8b5 Added information on using Amazon S3
Dave South authored Sep 9, 2010
46
47
103b17d README: Added short description of Devise.
Dave South authored Sep 17, 2010
48 h3. Devise
49
50 "http://github.com/plataformatec/devise":http://github.com/plataformatec/devise
51
52 Authentication system using Warden rack middleware. Integrates with Mongoid. Base project has authentication disabled. *To enable authentication, uncomment "before_filter :authenticate_user!" in application_controller.rb*
53
54
68cfe46 Added jQuery-UI for photo sortable support. Photos sort in-browser bu…
Dave South authored Sep 9, 2010
55 h3. jQuery
56
57 The jQuery UJS project for Rails lists 1.4.1 as the recommended version for Rails 3.0.
58
59
622f8b5 Added information on using Amazon S3
Dave South authored Sep 9, 2010
60 h3. Amazon S3
61
62 App includes configuration to use S3 for production, :file for development, and :file without processing in test mode. See config/initializers/carrierwave.rb for details.
63
64
65 h3. More
66
67 * Stores photo width and height
68 * Stores photo orientation
2077885 Photo sorting finished. Sortable sends photo ID array to sort_story_p…
Dave South authored Sep 10, 2010
69 * Live photo sorting using jQuery sortable
Something went wrong with that request. Please try again.