Permalink
Browse files

adding episode 270

  • Loading branch information...
1 parent 56f4f7d commit c7791797d21ebf092732fac4aede1b348c0a88c1 @ryanb committed Jun 13, 2011
Showing with 2,298 additions and 0 deletions.
  1. +8 −0 episode-270/README
  2. +5 −0 episode-270/auth-after/.gitignore
  3. +29 −0 episode-270/auth-after/Gemfile
  4. +115 −0 episode-270/auth-after/Gemfile.lock
  5. +261 −0 episode-270/auth-after/README
  6. +7 −0 episode-270/auth-after/Rakefile
  7. BIN episode-270/auth-after/app/assets/images/gandalf.jpg
  8. BIN episode-270/auth-after/app/assets/images/rails.png
  9. +9 −0 episode-270/auth-after/app/assets/javascripts/application.js
  10. +3 −0 episode-270/auth-after/app/assets/javascripts/secret.js.coffee
  11. +3 −0 episode-270/auth-after/app/assets/javascripts/sessions.js.coffee
  12. +3 −0 episode-270/auth-after/app/assets/javascripts/users.js.coffee
  13. +91 −0 episode-270/auth-after/app/assets/stylesheets/application.css
  14. +32 −0 episode-270/auth-after/app/assets/stylesheets/secret.css.scss
  15. +7 −0 episode-270/auth-after/app/assets/stylesheets/sessions.css.scss
  16. +7 −0 episode-270/auth-after/app/assets/stylesheets/users.css.scss
  17. +11 −0 episode-270/auth-after/app/controllers/application_controller.rb
  18. +5 −0 episode-270/auth-after/app/controllers/secret_controller.rb
  19. +20 −0 episode-270/auth-after/app/controllers/sessions_controller.rb
  20. +14 −0 episode-270/auth-after/app/controllers/users_controller.rb
  21. +2 −0 episode-270/auth-after/app/helpers/application_helper.rb
  22. +2 −0 episode-270/auth-after/app/helpers/secret_helper.rb
  23. +2 −0 episode-270/auth-after/app/helpers/sessions_helper.rb
  24. +2 −0 episode-270/auth-after/app/helpers/users_helper.rb
  25. 0 episode-270/auth-after/app/mailers/.gitkeep
  26. 0 episode-270/auth-after/app/models/.gitkeep
  27. +5 −0 episode-270/auth-after/app/models/user.rb
  28. +17 −0 episode-270/auth-after/app/views/layouts/application.html.erb
  29. +2 −0 episode-270/auth-after/app/views/secret/index.html.erb
  30. +13 −0 episode-270/auth-after/app/views/sessions/new.html.erb
  31. +27 −0 episode-270/auth-after/app/views/users/new.html.erb
  32. +4 −0 episode-270/auth-after/config.ru
  33. +42 −0 episode-270/auth-after/config/application.rb
  34. +6 −0 episode-270/auth-after/config/boot.rb
  35. +25 −0 episode-270/auth-after/config/database.yml
  36. +5 −0 episode-270/auth-after/config/environment.rb
  37. +27 −0 episode-270/auth-after/config/environments/development.rb
  38. +54 −0 episode-270/auth-after/config/environments/production.rb
  39. +39 −0 episode-270/auth-after/config/environments/test.rb
  40. +7 −0 episode-270/auth-after/config/initializers/backtrace_silencers.rb
  41. +10 −0 episode-270/auth-after/config/initializers/inflections.rb
  42. +5 −0 episode-270/auth-after/config/initializers/mime_types.rb
  43. +7 −0 episode-270/auth-after/config/initializers/secret_token.rb
  44. +8 −0 episode-270/auth-after/config/initializers/session_store.rb
  45. +12 −0 episode-270/auth-after/config/initializers/wrap_parameters.rb
  46. +5 −0 episode-270/auth-after/config/locales/en.yml
  47. +9 −0 episode-270/auth-after/config/routes.rb
  48. +10 −0 episode-270/auth-after/db/migrate/20110613044221_create_users.rb
  49. +22 −0 episode-270/auth-after/db/schema.rb
  50. +7 −0 episode-270/auth-after/db/seeds.rb
  51. +2 −0 episode-270/auth-after/doc/README_FOR_APP
  52. 0 episode-270/auth-after/lib/tasks/.gitkeep
  53. 0 episode-270/auth-after/log/.gitkeep
  54. +26 −0 episode-270/auth-after/public/404.html
  55. +26 −0 episode-270/auth-after/public/422.html
  56. +26 −0 episode-270/auth-after/public/500.html
  57. 0 episode-270/auth-after/public/favicon.ico
  58. +5 −0 episode-270/auth-after/public/robots.txt
  59. +6 −0 episode-270/auth-after/script/rails
  60. 0 episode-270/auth-after/test/fixtures/.gitkeep
  61. +9 −0 episode-270/auth-after/test/fixtures/users.yml
  62. 0 episode-270/auth-after/test/functional/.gitkeep
  63. +9 −0 episode-270/auth-after/test/functional/secret_controller_test.rb
  64. +9 −0 episode-270/auth-after/test/functional/sessions_controller_test.rb
  65. +9 −0 episode-270/auth-after/test/functional/users_controller_test.rb
  66. 0 episode-270/auth-after/test/integration/.gitkeep
  67. +12 −0 episode-270/auth-after/test/performance/browsing_test.rb
  68. +13 −0 episode-270/auth-after/test/test_helper.rb
  69. 0 episode-270/auth-after/test/unit/.gitkeep
  70. +4 −0 episode-270/auth-after/test/unit/helpers/secret_helper_test.rb
  71. +4 −0 episode-270/auth-after/test/unit/helpers/sessions_helper_test.rb
  72. +4 −0 episode-270/auth-after/test/unit/helpers/users_helper_test.rb
  73. +7 −0 episode-270/auth-after/test/unit/user_test.rb
  74. 0 episode-270/auth-after/vendor/assets/stylesheets/.gitkeep
  75. 0 episode-270/auth-after/vendor/plugins/.gitkeep
  76. +5 −0 episode-270/auth-before/.gitignore
  77. +29 −0 episode-270/auth-before/Gemfile
  78. +115 −0 episode-270/auth-before/Gemfile.lock
  79. +261 −0 episode-270/auth-before/README
  80. +7 −0 episode-270/auth-before/Rakefile
  81. BIN episode-270/auth-before/app/assets/images/gandalf.jpg
  82. BIN episode-270/auth-before/app/assets/images/rails.png
  83. +9 −0 episode-270/auth-before/app/assets/javascripts/application.js
  84. +3 −0 episode-270/auth-before/app/assets/javascripts/secret.js.coffee
  85. +3 −0 episode-270/auth-before/app/assets/javascripts/sessions.js.coffee
  86. +3 −0 episode-270/auth-before/app/assets/javascripts/users.js.coffee
  87. +91 −0 episode-270/auth-before/app/assets/stylesheets/application.css
  88. +32 −0 episode-270/auth-before/app/assets/stylesheets/secret.css.scss
  89. +7 −0 episode-270/auth-before/app/assets/stylesheets/sessions.css.scss
  90. +7 −0 episode-270/auth-before/app/assets/stylesheets/users.css.scss
  91. +3 −0 episode-270/auth-before/app/controllers/application_controller.rb
  92. +4 −0 episode-270/auth-before/app/controllers/secret_controller.rb
  93. +19 −0 episode-270/auth-before/app/controllers/sessions_controller.rb
  94. +14 −0 episode-270/auth-before/app/controllers/users_controller.rb
  95. +2 −0 episode-270/auth-before/app/helpers/application_helper.rb
  96. +2 −0 episode-270/auth-before/app/helpers/secret_helper.rb
  97. +2 −0 episode-270/auth-before/app/helpers/sessions_helper.rb
  98. +2 −0 episode-270/auth-before/app/helpers/users_helper.rb
  99. 0 episode-270/auth-before/app/mailers/.gitkeep
  100. 0 episode-270/auth-before/app/models/.gitkeep
  101. +17 −0 episode-270/auth-before/app/views/layouts/application.html.erb
  102. +2 −0 episode-270/auth-before/app/views/secret/index.html.erb
  103. +13 −0 episode-270/auth-before/app/views/sessions/new.html.erb
  104. +27 −0 episode-270/auth-before/app/views/users/new.html.erb
  105. +4 −0 episode-270/auth-before/config.ru
  106. +42 −0 episode-270/auth-before/config/application.rb
  107. +6 −0 episode-270/auth-before/config/boot.rb
  108. +25 −0 episode-270/auth-before/config/database.yml
  109. +5 −0 episode-270/auth-before/config/environment.rb
  110. +27 −0 episode-270/auth-before/config/environments/development.rb
  111. +54 −0 episode-270/auth-before/config/environments/production.rb
  112. +39 −0 episode-270/auth-before/config/environments/test.rb
  113. +7 −0 episode-270/auth-before/config/initializers/backtrace_silencers.rb
  114. +10 −0 episode-270/auth-before/config/initializers/inflections.rb
  115. +5 −0 episode-270/auth-before/config/initializers/mime_types.rb
  116. +7 −0 episode-270/auth-before/config/initializers/secret_token.rb
  117. +8 −0 episode-270/auth-before/config/initializers/session_store.rb
  118. +12 −0 episode-270/auth-before/config/initializers/wrap_parameters.rb
  119. +5 −0 episode-270/auth-before/config/locales/en.yml
  120. +9 −0 episode-270/auth-before/config/routes.rb
  121. +15 −0 episode-270/auth-before/db/schema.rb
  122. +7 −0 episode-270/auth-before/db/seeds.rb
  123. +2 −0 episode-270/auth-before/doc/README_FOR_APP
  124. 0 episode-270/auth-before/lib/tasks/.gitkeep
  125. 0 episode-270/auth-before/log/.gitkeep
  126. +26 −0 episode-270/auth-before/public/404.html
  127. +26 −0 episode-270/auth-before/public/422.html
  128. +26 −0 episode-270/auth-before/public/500.html
  129. 0 episode-270/auth-before/public/favicon.ico
  130. +5 −0 episode-270/auth-before/public/robots.txt
  131. +6 −0 episode-270/auth-before/script/rails
  132. 0 episode-270/auth-before/test/fixtures/.gitkeep
  133. 0 episode-270/auth-before/test/functional/.gitkeep
  134. +9 −0 episode-270/auth-before/test/functional/secret_controller_test.rb
  135. +9 −0 episode-270/auth-before/test/functional/sessions_controller_test.rb
  136. +9 −0 episode-270/auth-before/test/functional/users_controller_test.rb
  137. 0 episode-270/auth-before/test/integration/.gitkeep
  138. +12 −0 episode-270/auth-before/test/performance/browsing_test.rb
  139. +13 −0 episode-270/auth-before/test/test_helper.rb
  140. 0 episode-270/auth-before/test/unit/.gitkeep
  141. +4 −0 episode-270/auth-before/test/unit/helpers/secret_helper_test.rb
  142. +4 −0 episode-270/auth-before/test/unit/helpers/sessions_helper_test.rb
  143. +4 −0 episode-270/auth-before/test/unit/helpers/users_helper_test.rb
  144. 0 episode-270/auth-before/vendor/assets/stylesheets/.gitkeep
  145. 0 episode-270/auth-before/vendor/plugins/.gitkeep
View
@@ -0,0 +1,8 @@
+RailsCasts Episode #270: Authentication in Rails 3.1
+
+http://railscasts.com/episodes/270-authentication-in-rails-3-1
+
+Commands used in episode
+
+ rails g model user email:string password_digest:string
+ rails s -e production
@@ -0,0 +1,5 @@
+.bundle
+db/*.sqlite3
+log/*.log
+tmp/
+.sass-cache/
@@ -0,0 +1,29 @@
+source 'http://rubygems.org'
+
+gem 'rails', '3.1.0.rc4'
+
+# Bundle edge Rails instead:
+# gem 'rails', :git => 'git://github.com/rails/rails.git'
+
+gem 'sqlite3'
+
+# Asset template engines
+gem 'sass-rails', "~> 3.1.0.rc"
+gem 'coffee-script'
+gem 'uglifier'
+
+gem 'jquery-rails'
+
+# 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,115 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ actionmailer (3.1.0.rc4)
+ actionpack (= 3.1.0.rc4)
+ mail (~> 2.3.0)
+ actionpack (3.1.0.rc4)
+ activemodel (= 3.1.0.rc4)
+ activesupport (= 3.1.0.rc4)
+ builder (~> 3.0.0)
+ erubis (~> 2.7.0)
+ i18n (~> 0.6)
+ rack (~> 1.3.0)
+ rack-cache (~> 1.0.1)
+ rack-mount (~> 0.8.1)
+ rack-test (~> 0.6.0)
+ sprockets (~> 2.0.0.beta.10)
+ tzinfo (~> 0.3.27)
+ activemodel (3.1.0.rc4)
+ activesupport (= 3.1.0.rc4)
+ bcrypt-ruby (~> 2.1.4)
+ builder (~> 3.0.0)
+ i18n (~> 0.6)
+ activerecord (3.1.0.rc4)
+ activemodel (= 3.1.0.rc4)
+ activesupport (= 3.1.0.rc4)
+ arel (~> 2.1.1)
+ tzinfo (~> 0.3.27)
+ activeresource (3.1.0.rc4)
+ activemodel (= 3.1.0.rc4)
+ activesupport (= 3.1.0.rc4)
+ activesupport (3.1.0.rc4)
+ multi_json (~> 1.0)
+ ansi (1.2.5)
+ arel (2.1.1)
+ bcrypt-ruby (2.1.4)
+ builder (3.0.0)
+ coffee-script (2.2.0)
+ coffee-script-source
+ execjs
+ coffee-script-source (1.1.1)
+ erubis (2.7.0)
+ execjs (1.1.2)
+ multi_json (~> 1.0)
+ hike (1.0.0)
+ i18n (0.6.0)
+ jquery-rails (1.0.9)
+ railties (~> 3.0)
+ thor (~> 0.14)
+ mail (2.3.0)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.16)
+ multi_json (1.0.3)
+ polyglot (0.3.1)
+ rack (1.3.0)
+ rack-cache (1.0.2)
+ rack (>= 0.4)
+ rack-mount (0.8.1)
+ rack (>= 1.0.0)
+ rack-ssl (1.3.2)
+ rack
+ rack-test (0.6.0)
+ rack (>= 1.0)
+ rails (3.1.0.rc4)
+ actionmailer (= 3.1.0.rc4)
+ actionpack (= 3.1.0.rc4)
+ activerecord (= 3.1.0.rc4)
+ activeresource (= 3.1.0.rc4)
+ activesupport (= 3.1.0.rc4)
+ bundler (~> 1.0)
+ railties (= 3.1.0.rc4)
+ railties (3.1.0.rc4)
+ actionpack (= 3.1.0.rc4)
+ activesupport (= 3.1.0.rc4)
+ rack-ssl (~> 1.3.2)
+ rake (>= 0.8.7)
+ rdoc (~> 3.4)
+ thor (~> 0.14.6)
+ rake (0.9.2)
+ rdoc (3.6.1)
+ sass (3.1.2)
+ sass-rails (3.1.0.rc.2)
+ actionpack (~> 3.1.0.rc1)
+ railties (~> 3.1.0.rc1)
+ sass (>= 3.1.2)
+ sprockets (>= 2.0.0.beta.9)
+ sprockets (2.0.0.beta.10)
+ hike (~> 1.0)
+ rack (~> 1.0)
+ tilt (!= 1.3.0, ~> 1.1)
+ sqlite3 (1.3.3)
+ thor (0.14.6)
+ tilt (1.3.2)
+ treetop (1.4.9)
+ polyglot (>= 0.3.1)
+ turn (0.8.2)
+ ansi (>= 1.2.2)
+ tzinfo (0.3.27)
+ uglifier (0.5.4)
+ execjs (>= 0.3.0)
+ multi_json (>= 1.0.2)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ coffee-script
+ jquery-rails
+ rails (= 3.1.0.rc4)
+ sass-rails (~> 3.1.0.rc)
+ sqlite3
+ turn
+ uglifier
Oops, something went wrong.

0 comments on commit c779179

Please sign in to comment.