Permalink
Browse files

photos can be uploaded

  • Loading branch information...
0 parents commit a11baf7defc6a3555efd9dc6eeecb8190a30339e medialab committed Jan 15, 2012
Showing with 1,558 additions and 0 deletions.
  1. +15 −0 .gitignore
  2. +38 −0 Gemfile
  3. +125 −0 Gemfile.lock
  4. +261 −0 README
  5. +7 −0 Rakefile
  6. BIN app/assets/images/rails.png
  7. +9 −0 app/assets/javascripts/application.js
  8. +3 −0 app/assets/javascripts/pictures.js.coffee
  9. +7 −0 app/assets/stylesheets/application.css
  10. +3 −0 app/assets/stylesheets/pictures.css.scss
  11. +56 −0 app/assets/stylesheets/scaffolds.css.scss
  12. +3 −0 app/controllers/application_controller.rb
  13. +83 −0 app/controllers/pictures_controller.rb
  14. +2 −0 app/helpers/application_helper.rb
  15. +2 −0 app/helpers/pictures_helper.rb
  16. 0 app/mailers/.gitkeep
  17. 0 app/models/.gitkeep
  18. +3 −0 app/models/picture.rb
  19. +49 −0 app/uploaders/photo_uploader.rb
  20. +14 −0 app/views/layouts/application.html.erb
  21. +27 −0 app/views/pictures/_form.html.erb
  22. +6 −0 app/views/pictures/edit.html.erb
  23. +24 −0 app/views/pictures/index.html.erb
  24. +5 −0 app/views/pictures/new.html.erb
  25. +12 −0 app/views/pictures/show.html.erb
  26. +4 −0 config.ru
  27. +48 −0 config/application.rb
  28. +6 −0 config/boot.rb
  29. +25 −0 config/database.yml
  30. +5 −0 config/environment.rb
  31. +30 −0 config/environments/development.rb
  32. +60 −0 config/environments/production.rb
  33. +39 −0 config/environments/test.rb
  34. +7 −0 config/initializers/backtrace_silencers.rb
  35. +10 −0 config/initializers/inflections.rb
  36. +5 −0 config/initializers/mime_types.rb
  37. +7 −0 config/initializers/secret_token.rb
  38. +8 −0 config/initializers/session_store.rb
  39. +14 −0 config/initializers/wrap_parameters.rb
  40. +5 −0 config/locales/en.yml
  41. +60 −0 config/routes.rb
  42. +9 −0 db/migrate/20120115185030_create_pictures.rb
  43. +8 −0 db/migrate/20120115192726_picture_has_photo_file.rb
  44. +23 −0 db/schema.rb
  45. +7 −0 db/seeds.rb
  46. +2 −0 doc/README_FOR_APP
  47. 0 lib/assets/.gitkeep
  48. 0 lib/tasks/.gitkeep
  49. 0 log/.gitkeep
  50. +26 −0 public/404.html
  51. +26 −0 public/422.html
  52. +26 −0 public/500.html
  53. 0 public/favicon.ico
  54. +241 −0 public/index.html
  55. +5 −0 public/robots.txt
  56. BIN public/uploads/picture/photo_file/3/38377.jpg
  57. BIN public/uploads/picture/photo_file/4/Stainless_Steel_Figure_Vase.jpg
  58. BIN public/uploads/tmp/20120115-1556-6819-9515/Stainless_Steel_Figure_Vase.jpg
  59. BIN public/uploads/tmp/20120115-1600-8345-5491/Stainless_Steel_Figure_Vase.jpg
  60. BIN public/uploads/tmp/20120115-1605-8345-5421/Stainless_Steel_Figure_Vase.jpg
  61. BIN public/uploads/tmp/20120115-1605-8345-5893/Stainless_Steel_Figure_Vase.jpg
  62. BIN public/uploads/tmp/20120115-1606-8345-6343/Stainless_Steel_Figure_Vase.jpg
  63. BIN public/uploads/tmp/20120115-1608-8345-2496/Stainless_Steel_Figure_Vase.jpg
  64. +6 −0 script/rails
  65. 0 test/fixtures/.gitkeep
  66. +7 −0 test/fixtures/pictures.yml
  67. 0 test/functional/.gitkeep
  68. +49 −0 test/functional/pictures_controller_test.rb
  69. 0 test/integration/.gitkeep
  70. +12 −0 test/performance/browsing_test.rb
  71. +13 −0 test/test_helper.rb
  72. 0 test/unit/.gitkeep
  73. +4 −0 test/unit/helpers/pictures_helper_test.rb
  74. +7 −0 test/unit/picture_test.rb
  75. 0 vendor/assets/stylesheets/.gitkeep
  76. 0 vendor/plugins/.gitkeep
@@ -0,0 +1,15 @@
+# See http://help.github.com/ignore-files/ for more about ignoring files.
+#
+# If you find yourself ignoring temporary files generated by your text editor
+# or operating system, you probably want to add a global ignore instead:
+# git config --global core.excludesfile ~/.gitignore_global
+
+# Ignore bundler config
+/.bundle
+
+# Ignore the default SQLite database.
+/db/*.sqlite3
+
+# Ignore all logfiles and tempfiles.
+/log/*.log
+/tmp
38 Gemfile
@@ -0,0 +1,38 @@
+source 'http://rubygems.org'
+
+gem 'rails', '3.1.3'
+
+# Bundle edge Rails instead:
+# gem 'rails', :git => 'git://github.com/rails/rails.git'
+
+gem 'sqlite3'
+gem 'carrierwave'
+# gem 'mini_magick'
+
+
+# Gems used only for assets and not required
+# in production environments by default.
+group :assets do
+ gem 'sass-rails', '~> 3.1.5'
+ gem 'coffee-rails', '~> 3.1.1'
+ gem 'uglifier', '>= 1.0.3'
+end
+
+gem 'jquery-rails'
+
+# To use ActiveModel has_secure_password
+# gem 'bcrypt-ruby', '~> 3.0.0'
+
+# Use unicorn as the web server
+# gem 'unicorn'
+
+# Deploy with Capistrano
+# gem 'capistrano'
+
+# To use debugger
+# gem 'ruby-debug19', :require => 'ruby-debug'
+
+group :test do
+ # Pretty printed test output
+ gem 'turn', '0.8.2', :require => false
+end
@@ -0,0 +1,125 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ actionmailer (3.1.3)
+ actionpack (= 3.1.3)
+ mail (~> 2.3.0)
+ actionpack (3.1.3)
+ activemodel (= 3.1.3)
+ activesupport (= 3.1.3)
+ builder (~> 3.0.0)
+ erubis (~> 2.7.0)
+ i18n (~> 0.6)
+ rack (~> 1.3.5)
+ rack-cache (~> 1.1)
+ rack-mount (~> 0.8.2)
+ rack-test (~> 0.6.1)
+ sprockets (~> 2.0.3)
+ activemodel (3.1.3)
+ activesupport (= 3.1.3)
+ builder (~> 3.0.0)
+ i18n (~> 0.6)
+ activerecord (3.1.3)
+ activemodel (= 3.1.3)
+ activesupport (= 3.1.3)
+ arel (~> 2.2.1)
+ tzinfo (~> 0.3.29)
+ activeresource (3.1.3)
+ activemodel (= 3.1.3)
+ activesupport (= 3.1.3)
+ activesupport (3.1.3)
+ multi_json (~> 1.0)
+ ansi (1.4.1)
+ arel (2.2.1)
+ builder (3.0.0)
+ carrierwave (0.5.8)
+ activesupport (~> 3.0)
+ coffee-rails (3.1.1)
+ coffee-script (>= 2.2.0)
+ railties (~> 3.1.0)
+ coffee-script (2.2.0)
+ coffee-script-source
+ execjs
+ coffee-script-source (1.2.0)
+ erubis (2.7.0)
+ execjs (1.2.13)
+ multi_json (~> 1.0)
+ hike (1.2.1)
+ i18n (0.6.0)
+ jquery-rails (1.0.19)
+ railties (~> 3.0)
+ thor (~> 0.14)
+ json (1.6.5)
+ mail (2.3.0)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.17.2)
+ mini_magick (3.4)
+ subexec (~> 0.2.1)
+ multi_json (1.0.4)
+ polyglot (0.3.3)
+ rack (1.3.6)
+ rack-cache (1.1)
+ rack (>= 0.4)
+ rack-mount (0.8.3)
+ rack (>= 1.0.0)
+ rack-ssl (1.3.2)
+ rack
+ rack-test (0.6.1)
+ rack (>= 1.0)
+ rails (3.1.3)
+ actionmailer (= 3.1.3)
+ actionpack (= 3.1.3)
+ activerecord (= 3.1.3)
+ activeresource (= 3.1.3)
+ activesupport (= 3.1.3)
+ bundler (~> 1.0)
+ railties (= 3.1.3)
+ railties (3.1.3)
+ actionpack (= 3.1.3)
+ activesupport (= 3.1.3)
+ rack-ssl (~> 1.3.2)
+ rake (>= 0.8.7)
+ rdoc (~> 3.4)
+ thor (~> 0.14.6)
+ rake (0.9.2.2)
+ rdoc (3.12)
+ json (~> 1.4)
+ sass (3.1.12)
+ sass-rails (3.1.5)
+ actionpack (~> 3.1.0)
+ railties (~> 3.1.0)
+ sass (~> 3.1.10)
+ tilt (~> 1.3.2)
+ sprockets (2.0.3)
+ hike (~> 1.2)
+ rack (~> 1.0)
+ tilt (~> 1.1, != 1.3.0)
+ sqlite3 (1.3.5)
+ subexec (0.2.1)
+ thor (0.14.6)
+ tilt (1.3.3)
+ treetop (1.4.10)
+ polyglot
+ polyglot (>= 0.3.1)
+ turn (0.8.2)
+ ansi (>= 1.2.2)
+ tzinfo (0.3.31)
+ uglifier (1.2.2)
+ execjs (>= 0.3.0)
+ multi_json (>= 1.0.2)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ carrierwave
+ coffee-rails (~> 3.1.1)
+ jquery-rails
+ mini_magick
+ rails (= 3.1.3)
+ sass-rails (~> 3.1.5)
+ sqlite3
+ turn (= 0.8.2)
+ uglifier (>= 1.0.3)
Oops, something went wrong.

0 comments on commit a11baf7

Please sign in to comment.