Permalink
Browse files

adding episodes 322 and 323

  • Loading branch information...
1 parent 3a3a6d1 commit 6702f98677aa52bb5d5807133cdb38d794693da5 @ryanb committed Feb 9, 2012
Showing with 3,685 additions and 0 deletions.
  1. +5 −0 episode-322/README.md
  2. +15 −0 episode-322/blog-after/.gitignore
  3. +41 −0 episode-322/blog-after/Gemfile
  4. +115 −0 episode-322/blog-after/Gemfile.lock
  5. +9 −0 episode-322/blog-after/README.rdoc
  6. +7 −0 episode-322/blog-after/Rakefile
  7. BIN episode-322/blog-after/app/assets/images/rails.png
  8. +15 −0 episode-322/blog-after/app/assets/javascripts/application.js
  9. +3 −0 episode-322/blog-after/app/assets/javascripts/articles.js.coffee
  10. +3 −0 episode-322/blog-after/app/assets/javascripts/authors.js.coffee
  11. +3 −0 episode-322/blog-after/app/assets/javascripts/comments.js.coffee
  12. +146 −0 episode-322/blog-after/app/assets/stylesheets/application.css
  13. +3 −0 episode-322/blog-after/app/assets/stylesheets/articles.css.scss
  14. +3 −0 episode-322/blog-after/app/assets/stylesheets/authors.css.scss
  15. +3 −0 episode-322/blog-after/app/assets/stylesheets/comments.css.scss
  16. +12 −0 episode-322/blog-after/app/controllers/application_controller.rb
  17. +9 −0 episode-322/blog-after/app/controllers/articles_controller.rb
  18. +83 −0 episode-322/blog-after/app/controllers/authors_controller.rb
  19. +14 −0 episode-322/blog-after/app/controllers/comments_controller.rb
  20. +2 −0 episode-322/blog-after/app/helpers/application_helper.rb
  21. +2 −0 episode-322/blog-after/app/helpers/articles_helper.rb
  22. +2 −0 episode-322/blog-after/app/helpers/authors_helper.rb
  23. +2 −0 episode-322/blog-after/app/helpers/comments_helper.rb
  24. 0 episode-322/blog-after/app/mailers/.gitkeep
  25. 0 episode-322/blog-after/app/models/.gitkeep
  26. +4 −0 episode-322/blog-after/app/models/article.rb
  27. +3 −0 episode-322/blog-after/app/models/author.rb
  28. +3 −0 episode-322/blog-after/app/models/comment.rb
  29. +15 −0 episode-322/blog-after/app/views/articles/index.html.erb
  30. +3 −0 episode-322/blog-after/app/views/articles/index.json.rabl
  31. +21 −0 episode-322/blog-after/app/views/articles/show.html.erb
  32. +15 −0 episode-322/blog-after/app/views/articles/show.json.rabl
  33. +23 −0 episode-322/blog-after/app/views/authors/index.html.erb
  34. +24 −0 episode-322/blog-after/app/views/authors/show.html.erb
  35. +23 −0 episode-322/blog-after/app/views/comments/_form.html.erb
  36. +3 −0 episode-322/blog-after/app/views/comments/new.html.erb
  37. +17 −0 episode-322/blog-after/app/views/layouts/application.html.erb
  38. +4 −0 episode-322/blog-after/config.ru
  39. +59 −0 episode-322/blog-after/config/application.rb
  40. +6 −0 episode-322/blog-after/config/boot.rb
  41. +25 −0 episode-322/blog-after/config/database.yml
  42. +5 −0 episode-322/blog-after/config/environment.rb
  43. +37 −0 episode-322/blog-after/config/environments/development.rb
  44. +67 −0 episode-322/blog-after/config/environments/production.rb
  45. +37 −0 episode-322/blog-after/config/environments/test.rb
  46. +7 −0 episode-322/blog-after/config/initializers/backtrace_silencers.rb
  47. +15 −0 episode-322/blog-after/config/initializers/inflections.rb
  48. +5 −0 episode-322/blog-after/config/initializers/mime_types.rb
  49. +3 −0 episode-322/blog-after/config/initializers/rabl_config.rb
  50. +7 −0 episode-322/blog-after/config/initializers/secret_token.rb
  51. +8 −0 episode-322/blog-after/config/initializers/session_store.rb
  52. +14 −0 episode-322/blog-after/config/initializers/wrap_parameters.rb
  53. +5 −0 episode-322/blog-after/config/locales/en.yml
  54. +6 −0 episode-322/blog-after/config/routes.rb
  55. +13 −0 episode-322/blog-after/db/migrate/20120130184408_create_articles.rb
  56. +9 −0 episode-322/blog-after/db/migrate/20120130184446_create_authors.rb
  57. +12 −0 episode-322/blog-after/db/migrate/20120130184732_create_comments.rb
  58. +43 −0 episode-322/blog-after/db/schema.rb
  59. +15 −0 episode-322/blog-after/db/seeds.rb
  60. +2 −0 episode-322/blog-after/doc/README_FOR_APP
  61. 0 episode-322/blog-after/lib/assets/.gitkeep
  62. 0 episode-322/blog-after/lib/tasks/.gitkeep
  63. 0 episode-322/blog-after/log/.gitkeep
  64. +26 −0 episode-322/blog-after/public/404.html
  65. +26 −0 episode-322/blog-after/public/422.html
  66. +25 −0 episode-322/blog-after/public/500.html
  67. 0 episode-322/blog-after/public/favicon.ico
  68. +5 −0 episode-322/blog-after/public/robots.txt
  69. +6 −0 episode-322/blog-after/script/rails
  70. 0 episode-322/blog-after/test/fixtures/.gitkeep
  71. +11 −0 episode-322/blog-after/test/fixtures/articles.yml
  72. +7 −0 episode-322/blog-after/test/fixtures/authors.yml
  73. +11 −0 episode-322/blog-after/test/fixtures/comments.yml
  74. 0 episode-322/blog-after/test/functional/.gitkeep
  75. +49 −0 episode-322/blog-after/test/functional/articles_controller_test.rb
  76. +49 −0 episode-322/blog-after/test/functional/authors_controller_test.rb
  77. +9 −0 episode-322/blog-after/test/functional/comments_controller_test.rb
  78. 0 episode-322/blog-after/test/integration/.gitkeep
  79. +12 −0 episode-322/blog-after/test/performance/browsing_test.rb
  80. +13 −0 episode-322/blog-after/test/test_helper.rb
  81. 0 episode-322/blog-after/test/unit/.gitkeep
  82. +7 −0 episode-322/blog-after/test/unit/article_test.rb
  83. +7 −0 episode-322/blog-after/test/unit/author_test.rb
  84. +7 −0 episode-322/blog-after/test/unit/comment_test.rb
  85. +4 −0 episode-322/blog-after/test/unit/helpers/articles_helper_test.rb
  86. +4 −0 episode-322/blog-after/test/unit/helpers/authors_helper_test.rb
  87. +4 −0 episode-322/blog-after/test/unit/helpers/comments_helper_test.rb
  88. 0 episode-322/blog-after/vendor/assets/javascripts/.gitkeep
  89. 0 episode-322/blog-after/vendor/assets/stylesheets/.gitkeep
  90. 0 episode-322/blog-after/vendor/plugins/.gitkeep
  91. +15 −0 episode-322/blog-before/.gitignore
  92. +38 −0 episode-322/blog-before/Gemfile
  93. +111 −0 episode-322/blog-before/Gemfile.lock
  94. +9 −0 episode-322/blog-before/README.rdoc
  95. +7 −0 episode-322/blog-before/Rakefile
  96. BIN episode-322/blog-before/app/assets/images/rails.png
  97. +15 −0 episode-322/blog-before/app/assets/javascripts/application.js
  98. +3 −0 episode-322/blog-before/app/assets/javascripts/articles.js.coffee
  99. +3 −0 episode-322/blog-before/app/assets/javascripts/authors.js.coffee
  100. +3 −0 episode-322/blog-before/app/assets/javascripts/comments.js.coffee
  101. +146 −0 episode-322/blog-before/app/assets/stylesheets/application.css
  102. +3 −0 episode-322/blog-before/app/assets/stylesheets/articles.css.scss
  103. +3 −0 episode-322/blog-before/app/assets/stylesheets/authors.css.scss
  104. +3 −0 episode-322/blog-before/app/assets/stylesheets/comments.css.scss
  105. +12 −0 episode-322/blog-before/app/controllers/application_controller.rb
  106. +9 −0 episode-322/blog-before/app/controllers/articles_controller.rb
  107. +83 −0 episode-322/blog-before/app/controllers/authors_controller.rb
  108. +14 −0 episode-322/blog-before/app/controllers/comments_controller.rb
  109. +2 −0 episode-322/blog-before/app/helpers/application_helper.rb
  110. +2 −0 episode-322/blog-before/app/helpers/articles_helper.rb
  111. +2 −0 episode-322/blog-before/app/helpers/authors_helper.rb
  112. +2 −0 episode-322/blog-before/app/helpers/comments_helper.rb
  113. 0 episode-322/blog-before/app/mailers/.gitkeep
  114. 0 episode-322/blog-before/app/models/.gitkeep
  115. +4 −0 episode-322/blog-before/app/models/article.rb
  116. +3 −0 episode-322/blog-before/app/models/author.rb
  117. +3 −0 episode-322/blog-before/app/models/comment.rb
  118. +15 −0 episode-322/blog-before/app/views/articles/index.html.erb
  119. +21 −0 episode-322/blog-before/app/views/articles/show.html.erb
  120. +23 −0 episode-322/blog-before/app/views/authors/index.html.erb
  121. +24 −0 episode-322/blog-before/app/views/authors/show.html.erb
  122. +23 −0 episode-322/blog-before/app/views/comments/_form.html.erb
  123. +3 −0 episode-322/blog-before/app/views/comments/new.html.erb
  124. +17 −0 episode-322/blog-before/app/views/layouts/application.html.erb
  125. +4 −0 episode-322/blog-before/config.ru
  126. +59 −0 episode-322/blog-before/config/application.rb
  127. +6 −0 episode-322/blog-before/config/boot.rb
  128. +25 −0 episode-322/blog-before/config/database.yml
  129. +5 −0 episode-322/blog-before/config/environment.rb
  130. +37 −0 episode-322/blog-before/config/environments/development.rb
  131. +67 −0 episode-322/blog-before/config/environments/production.rb
  132. +37 −0 episode-322/blog-before/config/environments/test.rb
  133. +7 −0 episode-322/blog-before/config/initializers/backtrace_silencers.rb
  134. +15 −0 episode-322/blog-before/config/initializers/inflections.rb
  135. +5 −0 episode-322/blog-before/config/initializers/mime_types.rb
  136. +7 −0 episode-322/blog-before/config/initializers/secret_token.rb
  137. +8 −0 episode-322/blog-before/config/initializers/session_store.rb
  138. +14 −0 episode-322/blog-before/config/initializers/wrap_parameters.rb
  139. +5 −0 episode-322/blog-before/config/locales/en.yml
  140. +6 −0 episode-322/blog-before/config/routes.rb
  141. +13 −0 episode-322/blog-before/db/migrate/20120130184408_create_articles.rb
  142. +9 −0 episode-322/blog-before/db/migrate/20120130184446_create_authors.rb
  143. +12 −0 episode-322/blog-before/db/migrate/20120130184732_create_comments.rb
  144. +43 −0 episode-322/blog-before/db/schema.rb
  145. +15 −0 episode-322/blog-before/db/seeds.rb
  146. +2 −0 episode-322/blog-before/doc/README_FOR_APP
  147. 0 episode-322/blog-before/lib/assets/.gitkeep
  148. 0 episode-322/blog-before/lib/tasks/.gitkeep
  149. 0 episode-322/blog-before/log/.gitkeep
  150. +26 −0 episode-322/blog-before/public/404.html
  151. +26 −0 episode-322/blog-before/public/422.html
  152. +25 −0 episode-322/blog-before/public/500.html
  153. 0 episode-322/blog-before/public/favicon.ico
  154. +5 −0 episode-322/blog-before/public/robots.txt
  155. +6 −0 episode-322/blog-before/script/rails
  156. 0 episode-322/blog-before/test/fixtures/.gitkeep
  157. +11 −0 episode-322/blog-before/test/fixtures/articles.yml
  158. +7 −0 episode-322/blog-before/test/fixtures/authors.yml
  159. +11 −0 episode-322/blog-before/test/fixtures/comments.yml
  160. 0 episode-322/blog-before/test/functional/.gitkeep
  161. +49 −0 episode-322/blog-before/test/functional/articles_controller_test.rb
  162. +49 −0 episode-322/blog-before/test/functional/authors_controller_test.rb
  163. +9 −0 episode-322/blog-before/test/functional/comments_controller_test.rb
  164. 0 episode-322/blog-before/test/integration/.gitkeep
  165. +12 −0 episode-322/blog-before/test/performance/browsing_test.rb
  166. +13 −0 episode-322/blog-before/test/test_helper.rb
  167. 0 episode-322/blog-before/test/unit/.gitkeep
  168. +7 −0 episode-322/blog-before/test/unit/article_test.rb
  169. +7 −0 episode-322/blog-before/test/unit/author_test.rb
  170. +7 −0 episode-322/blog-before/test/unit/comment_test.rb
  171. +4 −0 episode-322/blog-before/test/unit/helpers/articles_helper_test.rb
  172. +4 −0 episode-322/blog-before/test/unit/helpers/authors_helper_test.rb
  173. +4 −0 episode-322/blog-before/test/unit/helpers/comments_helper_test.rb
  174. 0 episode-322/blog-before/vendor/assets/javascripts/.gitkeep
  175. 0 episode-322/blog-before/vendor/assets/stylesheets/.gitkeep
  176. 0 episode-322/blog-before/vendor/plugins/.gitkeep
  177. +5 −0 episode-323/README.md
  178. +15 −0 episode-323/raffler-after/.gitignore
  179. +40 −0 episode-323/raffler-after/Gemfile
  180. +123 −0 episode-323/raffler-after/Gemfile.lock
  181. +9 −0 episode-323/raffler-after/README.rdoc
  182. +7 −0 episode-323/raffler-after/Rakefile
  183. BIN episode-323/raffler-after/app/assets/images/rails.png
  184. +23 −0 episode-323/raffler-after/app/assets/javascripts/application.js
  185. +11 −0 episode-323/raffler-after/app/assets/javascripts/collections/entries.js.coffee
  186. +3 −0 episode-323/raffler-after/app/assets/javascripts/models/entry.js.coffee
  187. +11 −0 episode-323/raffler-after/app/assets/javascripts/raffler.js.coffee
  188. +15 −0 episode-323/raffler-after/app/assets/javascripts/routers/entries_router.js.coffee
  189. +28 −0 episode-323/raffler-after/app/assets/javascripts/views/entries/entries_index.js.coffee
  190. +15 −0 episode-323/raffler-after/app/assets/javascripts/views/entries/entry.js.coffee
  191. +13 −0 episode-323/raffler-after/app/assets/stylesheets/application.css
  192. +3 −0 episode-323/raffler-after/app/assets/stylesheets/entries.css.scss
  193. +93 −0 episode-323/raffler-after/app/assets/stylesheets/main.css.scss
  194. +4 −0 episode-323/raffler-after/app/assets/templates/entries/entry.jst.eco
  195. +10 −0 episode-323/raffler-after/app/assets/templates/entries/index.jst.eco
  196. +3 −0 episode-323/raffler-after/app/controllers/application_controller.rb
  197. +23 −0 episode-323/raffler-after/app/controllers/entries_controller.rb
  198. +4 −0 episode-323/raffler-after/app/controllers/main_controller.rb
  199. +2 −0 episode-323/raffler-after/app/helpers/application_helper.rb
  200. +2 −0 episode-323/raffler-after/app/helpers/entries_helper.rb
  201. +2 −0 episode-323/raffler-after/app/helpers/main_helper.rb
  202. 0 episode-323/raffler-after/app/mailers/.gitkeep
  203. 0 episode-323/raffler-after/app/models/.gitkeep
  204. +2 −0 episode-323/raffler-after/app/models/entry.rb
  205. +14 −0 episode-323/raffler-after/app/views/layouts/application.html.erb
  206. +1 −0 episode-323/raffler-after/app/views/main/index.html.erb
  207. +4 −0 episode-323/raffler-after/config.ru
  208. +59 −0 episode-323/raffler-after/config/application.rb
  209. +6 −0 episode-323/raffler-after/config/boot.rb
  210. +25 −0 episode-323/raffler-after/config/database.yml
  211. +5 −0 episode-323/raffler-after/config/environment.rb
  212. +37 −0 episode-323/raffler-after/config/environments/development.rb
  213. +67 −0 episode-323/raffler-after/config/environments/production.rb
  214. +37 −0 episode-323/raffler-after/config/environments/test.rb
  215. +7 −0 episode-323/raffler-after/config/initializers/backtrace_silencers.rb
  216. +15 −0 episode-323/raffler-after/config/initializers/inflections.rb
  217. +5 −0 episode-323/raffler-after/config/initializers/mime_types.rb
  218. +7 −0 episode-323/raffler-after/config/initializers/secret_token.rb
  219. +8 −0 episode-323/raffler-after/config/initializers/session_store.rb
  220. +14 −0 episode-323/raffler-after/config/initializers/wrap_parameters.rb
  221. +5 −0 episode-323/raffler-after/config/locales/en.yml
  222. +67 −0 episode-323/raffler-after/config/routes.rb
  223. +10 −0 episode-323/raffler-after/db/migrate/20120207184723_create_entries.rb
  224. +23 −0 episode-323/raffler-after/db/schema.rb
  225. +7 −0 episode-323/raffler-after/db/seeds.rb
  226. +2 −0 episode-323/raffler-after/doc/README_FOR_APP
  227. 0 episode-323/raffler-after/lib/assets/.gitkeep
  228. 0 episode-323/raffler-after/lib/tasks/.gitkeep
  229. 0 episode-323/raffler-after/log/.gitkeep
  230. +26 −0 episode-323/raffler-after/public/404.html
  231. +26 −0 episode-323/raffler-after/public/422.html
  232. +25 −0 episode-323/raffler-after/public/500.html
  233. 0 episode-323/raffler-after/public/favicon.ico
  234. +5 −0 episode-323/raffler-after/public/robots.txt
  235. +6 −0 episode-323/raffler-after/script/rails
  236. 0 episode-323/raffler-after/test/fixtures/.gitkeep
  237. +9 −0 episode-323/raffler-after/test/fixtures/entries.yml
  238. 0 episode-323/raffler-after/test/functional/.gitkeep
  239. +7 −0 episode-323/raffler-after/test/functional/entries_controller_test.rb
  240. +9 −0 episode-323/raffler-after/test/functional/main_controller_test.rb
  241. 0 episode-323/raffler-after/test/integration/.gitkeep
  242. +12 −0 episode-323/raffler-after/test/performance/browsing_test.rb
  243. +13 −0 episode-323/raffler-after/test/test_helper.rb
  244. 0 episode-323/raffler-after/test/unit/.gitkeep
  245. +7 −0 episode-323/raffler-after/test/unit/entry_test.rb
  246. +4 −0 episode-323/raffler-after/test/unit/helpers/entries_helper_test.rb
  247. +4 −0 episode-323/raffler-after/test/unit/helpers/main_helper_test.rb
  248. 0 episode-323/raffler-after/vendor/assets/javascripts/.gitkeep
  249. 0 episode-323/raffler-after/vendor/assets/stylesheets/.gitkeep
  250. 0 episode-323/raffler-after/vendor/plugins/.gitkeep
@@ -0,0 +1,5 @@
+# RailsCasts Episode #322: RABL
+
+http://railscasts.com/episodes/322-rabl
+
+Requires Ruby 1.9.2 or higher.
@@ -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
@@ -0,0 +1,41 @@
+source 'https://rubygems.org'
+
+gem 'rails', '3.2.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.2.3'
+ gem 'coffee-rails', '~> 3.2.1'
+
+ # See https://github.com/sstephenson/execjs#readme for more supported runtimes
+ # gem 'therubyracer'
+
+ gem 'uglifier', '>= 1.0.3'
+end
+
+gem 'jquery-rails'
+
+# To use ActiveModel has_secure_password
+# gem 'bcrypt-ruby', '~> 3.0.0'
+
+# To use Jbuilder templates for JSON
+# gem 'jbuilder'
+
+# Use unicorn as the web server
+# gem 'unicorn'
+
+# Deploy with Capistrano
+# gem 'capistrano'
+
+# To use debugger
+# gem 'ruby-debug19', :require => 'ruby-debug'
+
+gem 'rabl'
+
@@ -0,0 +1,115 @@
+GEM
+ remote: https://rubygems.org/
+ specs:
+ actionmailer (3.2.1)
+ actionpack (= 3.2.1)
+ mail (~> 2.4.0)
+ actionpack (3.2.1)
+ activemodel (= 3.2.1)
+ activesupport (= 3.2.1)
+ builder (~> 3.0.0)
+ erubis (~> 2.7.0)
+ journey (~> 1.0.1)
+ rack (~> 1.4.0)
+ rack-cache (~> 1.1)
+ rack-test (~> 0.6.1)
+ sprockets (~> 2.1.2)
+ activemodel (3.2.1)
+ activesupport (= 3.2.1)
+ builder (~> 3.0.0)
+ activerecord (3.2.1)
+ activemodel (= 3.2.1)
+ activesupport (= 3.2.1)
+ arel (~> 3.0.0)
+ tzinfo (~> 0.3.29)
+ activeresource (3.2.1)
+ activemodel (= 3.2.1)
+ activesupport (= 3.2.1)
+ activesupport (3.2.1)
+ i18n (~> 0.6)
+ multi_json (~> 1.0)
+ arel (3.0.0)
+ builder (3.0.0)
+ coffee-rails (3.2.2)
+ coffee-script (>= 2.2.0)
+ railties (~> 3.2.0)
+ coffee-script (2.2.0)
+ coffee-script-source
+ execjs
+ coffee-script-source (1.2.0)
+ erubis (2.7.0)
+ execjs (1.3.0)
+ multi_json (~> 1.0)
+ hike (1.2.1)
+ i18n (0.6.0)
+ journey (1.0.1)
+ jquery-rails (2.0.0)
+ railties (>= 3.2.0.beta, < 5.0)
+ thor (~> 0.14)
+ json (1.6.5)
+ mail (2.4.1)
+ 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)
+ rabl (0.5.3)
+ activesupport (>= 2.3.14)
+ multi_json (~> 1.0.3)
+ rack (1.4.1)
+ rack-cache (1.1)
+ rack (>= 0.4)
+ rack-ssl (1.3.2)
+ rack
+ rack-test (0.6.1)
+ rack (>= 1.0)
+ rails (3.2.1)
+ actionmailer (= 3.2.1)
+ actionpack (= 3.2.1)
+ activerecord (= 3.2.1)
+ activeresource (= 3.2.1)
+ activesupport (= 3.2.1)
+ bundler (~> 1.0)
+ railties (= 3.2.1)
+ railties (3.2.1)
+ actionpack (= 3.2.1)
+ activesupport (= 3.2.1)
+ 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.2.4)
+ railties (~> 3.2.0)
+ sass (>= 3.1.10)
+ tilt (~> 1.3)
+ sprockets (2.1.2)
+ 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)
+ tzinfo (0.3.31)
+ uglifier (1.2.3)
+ execjs (>= 0.3.0)
+ multi_json (>= 1.0.2)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ coffee-rails (~> 3.2.1)
+ jquery-rails
+ rabl
+ rails (= 3.2.1)
+ sass-rails (~> 3.2.3)
+ sqlite3
+ uglifier (>= 1.0.3)
@@ -0,0 +1,9 @@
+= RailsCasts Example Application
+
+Run these commands to try it out.
+
+ bundle
+ rake db:setup
+ rails s
+
+Requires Ruby 1.9.2 or later to run.
@@ -0,0 +1,7 @@
+#!/usr/bin/env rake
+# Add your own tasks in files placed in lib/tasks ending in .rake,
+# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
+
+require File.expand_path('../config/application', __FILE__)
+
+Blog::Application.load_tasks
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,15 @@
+// This is a manifest file that'll be compiled into application.js, which will include all the files
+// listed below.
+//
+// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
+// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
+//
+// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
+// the compiled file.
+//
+// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
+// GO AFTER THE REQUIRES BELOW.
+//
+//= require jquery
+//= require jquery_ujs
+//= require_tree .
@@ -0,0 +1,3 @@
+# Place all the behaviors and hooks related to the matching controller here.
+# All this logic will automatically be available in application.js.
+# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
@@ -0,0 +1,3 @@
+# Place all the behaviors and hooks related to the matching controller here.
+# All this logic will automatically be available in application.js.
+# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
@@ -0,0 +1,3 @@
+# Place all the behaviors and hooks related to the matching controller here.
+# All this logic will automatically be available in application.js.
+# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
@@ -0,0 +1,146 @@
+/*
+ * This is a manifest file that'll automatically include all the stylesheets available in this directory
+ * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
+ * the top of the compiled file, but it's generally better to create a new file per style scope.
+ *= require_self
+ *= require_tree .
+*/
+
+body {
+ background-color: #4B7399;
+ font-family: Verdana, Helvetica, Arial;
+ font-size: 14px;
+}
+
+a img {
+ border: none;
+}
+
+a {
+ color: #0000FF;
+}
+
+.clear {
+ clear: both;
+ height: 0;
+ overflow: hidden;
+}
+
+#container {
+ width: 75%;
+ margin: 0 auto;
+ background-color: #FFF;
+ padding: 20px 40px;
+ border: solid 1px black;
+ margin-top: 20px;
+}
+
+#flash_notice, #flash_error, #flash_alert {
+ padding: 5px 8px;
+ margin: 10px 0;
+}
+
+#flash_notice {
+ background-color: #CFC;
+ border: solid 1px #6C6;
+}
+
+#flash_error, #flash_alert {
+ background-color: #FCC;
+ border: solid 1px #C66;
+}
+
+.field_with_errors {
+ display: inline;
+}
+
+.error_messages {
+ width: 400px;
+ border: 2px solid #CF0000;
+ padding: 0px;
+ padding-bottom: 12px;
+ margin-bottom: 20px;
+ background-color: #f0f0f0;
+ font-size: 12px;
+}
+
+.error_messages h2 {
+ text-align: left;
+ font-weight: bold;
+ padding: 5px 10px;
+ font-size: 12px;
+ margin: 0;
+ background-color: #c00;
+ color: #fff;
+}
+
+.error_messages p {
+ margin: 8px 10px;
+}
+
+.error_messages ul {
+ margin-bottom: 0;
+}
+
+form .field, form .actions {
+ margin: 12px 0;
+}
+
+#articles h2 {
+ font-size: 16px;
+ margin-bottom: 2px;
+ margin-top: 20px;
+}
+
+#articles h2 .comments {
+ font-size: 12px;
+ font-weight: normal;
+}
+
+#articles .info {
+ font-style: italic;
+ color: #333;
+ margin-bottom: 8px;
+ font-size: 12px;
+}
+
+#comments {
+ font-size: 12px;
+ background-color: #EEE;
+ padding: 0 20px;
+ width: 325px;
+ border: solid 1px #777;
+}
+
+.comment {
+ border-bottom: solid 1px #999;
+ margin: 15px 0;
+}
+
+.comment:last-child {
+ border-bottom: none;
+}
+
+.comment .author_name {
+ font-weight: bold;
+}
+
+#facets {
+ float: right;
+ border: solid 1px #40558F;
+ background-color: #B1CAE6;
+ padding: 20px 15px;
+ margin-left: 20px;
+}
+
+#facets h3 {
+ margin: 0;
+}
+
+#facets ul {
+ padding: 0;
+ margin: 0;
+ margin-top: 10px;
+ list-style: none;
+ color: #000;
+}
@@ -0,0 +1,3 @@
+// Place all the styles related to the articles controller here.
+// They will automatically be included in application.css.
+// You can use Sass (SCSS) here: http://sass-lang.com/
@@ -0,0 +1,3 @@
+// Place all the styles related to the authors controller here.
+// They will automatically be included in application.css.
+// You can use Sass (SCSS) here: http://sass-lang.com/
@@ -0,0 +1,3 @@
+// Place all the styles related to the comments controller here.
+// They will automatically be included in application.css.
+// You can use Sass (SCSS) here: http://sass-lang.com/
@@ -0,0 +1,12 @@
+require "ostruct"
+
+class ApplicationController < ActionController::Base
+ protect_from_forgery
+
+private
+
+ def current_user
+ OpenStruct.new(admin?: true)
+ end
+ helper_method :current_user
+end
Oops, something went wrong.

0 comments on commit 6702f98

Please sign in to comment.