Permalink
Browse files

initial commit: non-smoking bar scaffold, migration, and validation

  • Loading branch information...
ivana committed Jan 12, 2012
0 parents commit cc4ce0b7a8b038136e398eadeb1bf571a48ae2ff
Showing with 1,529 additions and 0 deletions.
  1. +5 −0 .gitignore
  2. +36 −0 Gemfile
  3. +118 −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. +7 −0 app/assets/stylesheets/application.css
  9. +56 −0 app/assets/stylesheets/scaffolds.css.scss
  10. +3 −0 app/controllers/application_controller.rb
  11. +83 −0 app/controllers/non_smoking_bars_controller.rb
  12. +2 −0 app/helpers/application_helper.rb
  13. +2 −0 app/helpers/non_smoking_bars_helper.rb
  14. 0 app/mailers/.gitkeep
  15. 0 app/models/.gitkeep
  16. +4 −0 app/models/non_smoking_bar.rb
  17. +14 −0 app/views/layouts/application.html.erb
  18. +37 −0 app/views/non_smoking_bars/_form.html.erb
  19. +6 −0 app/views/non_smoking_bars/edit.html.erb
  20. +31 −0 app/views/non_smoking_bars/index.html.erb
  21. +5 −0 app/views/non_smoking_bars/new.html.erb
  22. +30 −0 app/views/non_smoking_bars/show.html.erb
  23. +4 −0 config.ru
  24. +48 −0 config/application.rb
  25. +6 −0 config/boot.rb
  26. +25 −0 config/database.yml
  27. +5 −0 config/environment.rb
  28. +30 −0 config/environments/development.rb
  29. +60 −0 config/environments/production.rb
  30. +39 −0 config/environments/test.rb
  31. +7 −0 config/initializers/backtrace_silencers.rb
  32. +10 −0 config/initializers/inflections.rb
  33. +5 −0 config/initializers/mime_types.rb
  34. +7 −0 config/initializers/secret_token.rb
  35. +8 −0 config/initializers/session_store.rb
  36. +14 −0 config/initializers/wrap_parameters.rb
  37. +5 −0 config/locales/en.yml
  38. +60 −0 config/routes.rb
  39. +15 −0 db/migrate/20120112131828_create_non_smoking_bars.rb
  40. +26 −0 db/schema.rb
  41. +7 −0 db/seeds.rb
  42. +2 −0 doc/README_FOR_APP
  43. 0 lib/assets/.gitkeep
  44. 0 lib/tasks/.gitkeep
  45. 0 log/.gitkeep
  46. +26 −0 public/404.html
  47. +26 −0 public/422.html
  48. +26 −0 public/500.html
  49. 0 public/favicon.ico
  50. +241 −0 public/index.html
  51. +5 −0 public/robots.txt
  52. +6 −0 script/rails
  53. 0 test/fixtures/.gitkeep
  54. +15 −0 test/fixtures/non_smoking_bars.yml
  55. 0 test/functional/.gitkeep
  56. +49 −0 test/functional/non_smoking_bars_controller_test.rb
  57. 0 test/integration/.gitkeep
  58. +12 −0 test/performance/browsing_test.rb
  59. +13 −0 test/test_helper.rb
  60. 0 test/unit/.gitkeep
  61. +4 −0 test/unit/helpers/non_smoking_bars_helper_test.rb
  62. +7 −0 test/unit/non_smoking_bar_test.rb
  63. 0 vendor/assets/stylesheets/.gitkeep
  64. 0 vendor/plugins/.gitkeep
@@ -0,0 +1,5 @@
+.bundle
+db/*.sqlite3
+log/*.log
+tmp/
+.sass-cache/
36 Gemfile
@@ -0,0 +1,36 @@
+source 'http://rubygems.org'
+
+gem 'rails', '~> 3.1'
+
+# Bundle edge Rails instead:
+# gem 'rails', :git => 'git://github.com/rails/rails.git'
+
+gem 'sqlite3'
+
+
+# Gems used only for assets and not required
+# in production environments by default.
+group :assets do
+ gem 'sass-rails', '~> 3.1'
+ gem 'coffee-rails', '~> 3.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', :require => false
+end
@@ -0,0 +1,118 @@
+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)
+ 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.4)
+ mail (2.3.0)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.17.2)
+ 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)
+ thor (0.14.6)
+ tilt (1.3.3)
+ treetop (1.4.10)
+ polyglot
+ polyglot (>= 0.3.1)
+ turn (0.8.3)
+ ansi
+ tzinfo (0.3.31)
+ uglifier (1.2.1)
+ execjs (>= 0.3.0)
+ multi_json (>= 1.0.2)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ coffee-rails (~> 3.1)
+ jquery-rails
+ rails (~> 3.1)
+ sass-rails (~> 3.1)
+ sqlite3
+ turn
+ uglifier (>= 1.0.3)
Oops, something went wrong.

0 comments on commit cc4ce0b

Please sign in to comment.