Permalink
Browse files

automatic import from ryanb/railscasts-episodes

  • Loading branch information...
0 parents commit c921b782ff1ed25112f092a31e0afc168efd8efd @gilesbowkett gilesbowkett committed Jul 29, 2011
Showing with 2,478 additions and 0 deletions.
  1. +11 −0 README
  2. +5 −0 auth-after/.gitignore
  3. +29 −0 auth-after/Gemfile
  4. +115 −0 auth-after/Gemfile.lock
  5. +261 −0 auth-after/README
  6. +7 −0 auth-after/Rakefile
  7. BIN auth-after/app/assets/images/rails.png
  8. +9 −0 auth-after/app/assets/javascripts/application.js
  9. +3 −0 auth-after/app/assets/javascripts/home.js.coffee
  10. +3 −0 auth-after/app/assets/javascripts/password_resets.js.coffee
  11. +3 −0 auth-after/app/assets/javascripts/sessions.js.coffee
  12. +3 −0 auth-after/app/assets/javascripts/users.js.coffee
  13. +96 −0 auth-after/app/assets/stylesheets/application.css
  14. +7 −0 auth-after/app/assets/stylesheets/home.css.scss
  15. +7 −0 auth-after/app/assets/stylesheets/password_resets.css.scss
  16. +7 −0 auth-after/app/assets/stylesheets/sessions.css.scss
  17. +7 −0 auth-after/app/assets/stylesheets/users.css.scss
  18. +10 −0 auth-after/app/controllers/application_controller.rb
  19. +4 −0 auth-after/app/controllers/home_controller.rb
  20. +25 −0 auth-after/app/controllers/password_resets_controller.rb
  21. +24 −0 auth-after/app/controllers/sessions_controller.rb
  22. +14 −0 auth-after/app/controllers/users_controller.rb
  23. +2 −0 auth-after/app/helpers/application_helper.rb
  24. +2 −0 auth-after/app/helpers/home_helper.rb
  25. +2 −0 auth-after/app/helpers/password_resets_helper.rb
  26. +2 −0 auth-after/app/helpers/sessions_helper.rb
  27. +2 −0 auth-after/app/helpers/users_helper.rb
  28. 0 auth-after/app/mailers/.gitkeep
  29. +13 −0 auth-after/app/mailers/user_mailer.rb
  30. 0 auth-after/app/models/.gitkeep
  31. +19 −0 auth-after/app/models/user.rb
  32. +3 −0 auth-after/app/views/home/index.html.erb
  33. +26 −0 auth-after/app/views/layouts/application.html.erb
  34. +23 −0 auth-after/app/views/password_resets/edit.html.erb
  35. +9 −0 auth-after/app/views/password_resets/new.html.erb
  36. +18 −0 auth-after/app/views/sessions/new.html.erb
  37. +5 −0 auth-after/app/views/user_mailer/password_reset.text.erb
  38. +27 −0 auth-after/app/views/users/new.html.erb
  39. +4 −0 auth-after/config.ru
  40. +42 −0 auth-after/config/application.rb
  41. +6 −0 auth-after/config/boot.rb
  42. +25 −0 auth-after/config/database.yml
  43. +5 −0 auth-after/config/environment.rb
  44. +29 −0 auth-after/config/environments/development.rb
  45. +54 −0 auth-after/config/environments/production.rb
  46. +39 −0 auth-after/config/environments/test.rb
  47. +7 −0 auth-after/config/initializers/backtrace_silencers.rb
  48. +10 −0 auth-after/config/initializers/inflections.rb
  49. +5 −0 auth-after/config/initializers/mime_types.rb
  50. +7 −0 auth-after/config/initializers/secret_token.rb
  51. +8 −0 auth-after/config/initializers/session_store.rb
  52. +12 −0 auth-after/config/initializers/wrap_parameters.rb
  53. +5 −0 auth-after/config/locales/en.yml
  54. +9 −0 auth-after/config/routes.rb
  55. +10 −0 auth-after/db/migrate/20110613044221_create_users.rb
  56. +5 −0 auth-after/db/migrate/20110711052201_add_auth_token_to_users.rb
  57. +6 −0 auth-after/db/migrate/20110711061937_add_password_reset_to_users.rb
  58. +25 −0 auth-after/db/schema.rb
  59. +7 −0 auth-after/db/seeds.rb
  60. +2 −0 auth-after/doc/README_FOR_APP
  61. 0 auth-after/lib/tasks/.gitkeep
  62. 0 auth-after/log/.gitkeep
  63. +26 −0 auth-after/public/404.html
  64. +26 −0 auth-after/public/422.html
  65. +26 −0 auth-after/public/500.html
  66. 0 auth-after/public/favicon.ico
  67. +5 −0 auth-after/public/robots.txt
  68. +6 −0 auth-after/script/rails
  69. 0 auth-after/test/fixtures/.gitkeep
  70. +9 −0 auth-after/test/fixtures/users.yml
  71. 0 auth-after/test/functional/.gitkeep
  72. +9 −0 auth-after/test/functional/home_controller_test.rb
  73. +9 −0 auth-after/test/functional/password_resets_controller_test.rb
  74. +9 −0 auth-after/test/functional/sessions_controller_test.rb
  75. +12 −0 auth-after/test/functional/user_mailer_test.rb
  76. +9 −0 auth-after/test/functional/users_controller_test.rb
  77. 0 auth-after/test/integration/.gitkeep
  78. +12 −0 auth-after/test/performance/browsing_test.rb
  79. +13 −0 auth-after/test/test_helper.rb
  80. 0 auth-after/test/unit/.gitkeep
  81. +4 −0 auth-after/test/unit/helpers/home_helper_test.rb
  82. +4 −0 auth-after/test/unit/helpers/password_resets_helper_test.rb
  83. +4 −0 auth-after/test/unit/helpers/secret_helper_test.rb
  84. +4 −0 auth-after/test/unit/helpers/sessions_helper_test.rb
  85. +4 −0 auth-after/test/unit/helpers/users_helper_test.rb
  86. +7 −0 auth-after/test/unit/user_test.rb
  87. 0 auth-after/vendor/assets/stylesheets/.gitkeep
  88. 0 auth-after/vendor/plugins/.gitkeep
  89. +5 −0 auth-before/.gitignore
  90. +29 −0 auth-before/Gemfile
  91. +115 −0 auth-before/Gemfile.lock
  92. +261 −0 auth-before/README
  93. +7 −0 auth-before/Rakefile
  94. BIN auth-before/app/assets/images/rails.png
  95. +9 −0 auth-before/app/assets/javascripts/application.js
  96. +3 −0 auth-before/app/assets/javascripts/home.js.coffee
  97. +3 −0 auth-before/app/assets/javascripts/sessions.js.coffee
  98. +3 −0 auth-before/app/assets/javascripts/users.js.coffee
  99. +91 −0 auth-before/app/assets/stylesheets/application.css
  100. +7 −0 auth-before/app/assets/stylesheets/home.css.scss
  101. +7 −0 auth-before/app/assets/stylesheets/sessions.css.scss
  102. +7 −0 auth-before/app/assets/stylesheets/users.css.scss
  103. +10 −0 auth-before/app/controllers/application_controller.rb
  104. +4 −0 auth-before/app/controllers/home_controller.rb
  105. +20 −0 auth-before/app/controllers/sessions_controller.rb
  106. +14 −0 auth-before/app/controllers/users_controller.rb
  107. +2 −0 auth-before/app/helpers/application_helper.rb
  108. +2 −0 auth-before/app/helpers/home_helper.rb
  109. +2 −0 auth-before/app/helpers/sessions_helper.rb
  110. +2 −0 auth-before/app/helpers/users_helper.rb
  111. 0 auth-before/app/mailers/.gitkeep
  112. 0 auth-before/app/models/.gitkeep
  113. +5 −0 auth-before/app/models/user.rb
  114. +3 −0 auth-before/app/views/home/index.html.erb
  115. +26 −0 auth-before/app/views/layouts/application.html.erb
  116. +13 −0 auth-before/app/views/sessions/new.html.erb
  117. +27 −0 auth-before/app/views/users/new.html.erb
  118. +4 −0 auth-before/config.ru
  119. +42 −0 auth-before/config/application.rb
  120. +6 −0 auth-before/config/boot.rb
  121. +25 −0 auth-before/config/database.yml
  122. +5 −0 auth-before/config/environment.rb
  123. +27 −0 auth-before/config/environments/development.rb
  124. +54 −0 auth-before/config/environments/production.rb
  125. +39 −0 auth-before/config/environments/test.rb
  126. +7 −0 auth-before/config/initializers/backtrace_silencers.rb
  127. +10 −0 auth-before/config/initializers/inflections.rb
  128. +5 −0 auth-before/config/initializers/mime_types.rb
  129. +7 −0 auth-before/config/initializers/secret_token.rb
  130. +8 −0 auth-before/config/initializers/session_store.rb
  131. +12 −0 auth-before/config/initializers/wrap_parameters.rb
  132. +5 −0 auth-before/config/locales/en.yml
  133. +8 −0 auth-before/config/routes.rb
  134. +10 −0 auth-before/db/migrate/20110613044221_create_users.rb
  135. +22 −0 auth-before/db/schema.rb
  136. +7 −0 auth-before/db/seeds.rb
  137. +2 −0 auth-before/doc/README_FOR_APP
  138. 0 auth-before/lib/tasks/.gitkeep
  139. 0 auth-before/log/.gitkeep
  140. +26 −0 auth-before/public/404.html
  141. +26 −0 auth-before/public/422.html
  142. +26 −0 auth-before/public/500.html
  143. 0 auth-before/public/favicon.ico
  144. +5 −0 auth-before/public/robots.txt
  145. +6 −0 auth-before/script/rails
  146. 0 auth-before/test/fixtures/.gitkeep
  147. +9 −0 auth-before/test/fixtures/users.yml
  148. 0 auth-before/test/functional/.gitkeep
  149. +9 −0 auth-before/test/functional/home_controller_test.rb
  150. +9 −0 auth-before/test/functional/sessions_controller_test.rb
  151. +9 −0 auth-before/test/functional/users_controller_test.rb
  152. 0 auth-before/test/integration/.gitkeep
  153. +12 −0 auth-before/test/performance/browsing_test.rb
  154. +13 −0 auth-before/test/test_helper.rb
  155. 0 auth-before/test/unit/.gitkeep
  156. +4 −0 auth-before/test/unit/helpers/home_helper_test.rb
  157. +4 −0 auth-before/test/unit/helpers/secret_helper_test.rb
  158. +4 −0 auth-before/test/unit/helpers/sessions_helper_test.rb
  159. +4 −0 auth-before/test/unit/helpers/users_helper_test.rb
  160. +7 −0 auth-before/test/unit/user_test.rb
  161. 0 auth-before/vendor/assets/stylesheets/.gitkeep
  162. 0 auth-before/vendor/plugins/.gitkeep
11 README
@@ -0,0 +1,11 @@
+RailsCasts Episode #274: Remember Me & Reset Password
+
+http://railscasts.com/episodes/274-remember-me-reset-password
+
+Commands used in episode
+
+ rails g migration add_auth_token_to_users auth_token:string
+ rake db:migrate
+ rails g controller password_resets new
+ rails g migration add_password_reset_to_users password_reset_token:string password_reset_sent_at:datetime
+ rails g mailer user_mailer password_reset
@@ -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 c921b78

Please sign in to comment.