Permalink
Browse files

adding episodes 306 and 307

  • Loading branch information...
1 parent ecb0ef4 commit bc63455b132d0de86b9cb25e9fcf1d3c552d3e54 @ryanb committed Dec 13, 2011
Showing with 4,007 additions and 0 deletions.
  1. +11 −0 episode-306/README
  2. +5 −0 episode-306/blog-after/.gitignore
  3. +21 −0 episode-306/blog-after/Gemfile
  4. +122 −0 episode-306/blog-after/Gemfile.lock
  5. +9 −0 episode-306/blog-after/README
  6. +7 −0 episode-306/blog-after/Rakefile
  7. BIN episode-306/blog-after/app/assets/images/rails.png
  8. +9 −0 episode-306/blog-after/app/assets/javascripts/application.js
  9. +3 −0 episode-306/blog-after/app/assets/javascripts/articles.js.coffee
  10. +3 −0 episode-306/blog-after/app/assets/javascripts/comments.js.coffee
  11. +146 −0 episode-306/blog-after/app/assets/stylesheets/application.css
  12. +49 −0 episode-306/blog-after/app/assets/stylesheets/articles.css.scss
  13. +3 −0 episode-306/blog-after/app/assets/stylesheets/comments.css.scss
  14. +3 −0 episode-306/blog-after/app/controllers/application_controller.rb
  15. +10 −0 episode-306/blog-after/app/controllers/articles_controller.rb
  16. +14 −0 episode-306/blog-after/app/controllers/comments_controller.rb
  17. +2 −0 episode-306/blog-after/app/helpers/application_helper.rb
  18. +2 −0 episode-306/blog-after/app/helpers/articles_helper.rb
  19. +2 −0 episode-306/blog-after/app/helpers/comments_helper.rb
  20. 0 episode-306/blog-after/app/mailers/.gitkeep
  21. 0 episode-306/blog-after/app/models/.gitkeep
  22. +14 −0 episode-306/blog-after/app/models/article.rb
  23. +2 −0 episode-306/blog-after/app/models/author.rb
  24. +3 −0 episode-306/blog-after/app/models/comment.rb
  25. +22 −0 episode-306/blog-after/app/views/articles/index.html.erb
  26. +24 −0 episode-306/blog-after/app/views/articles/show.html.erb
  27. +23 −0 episode-306/blog-after/app/views/comments/_form.html.erb
  28. +3 −0 episode-306/blog-after/app/views/comments/new.html.erb
  29. +17 −0 episode-306/blog-after/app/views/layouts/application.html.erb
  30. +4 −0 episode-306/blog-after/config.ru
  31. +48 −0 episode-306/blog-after/config/application.rb
  32. +6 −0 episode-306/blog-after/config/boot.rb
  33. +25 −0 episode-306/blog-after/config/database.yml
  34. +5 −0 episode-306/blog-after/config/environment.rb
  35. +30 −0 episode-306/blog-after/config/environments/development.rb
  36. +60 −0 episode-306/blog-after/config/environments/production.rb
  37. +39 −0 episode-306/blog-after/config/environments/test.rb
  38. +7 −0 episode-306/blog-after/config/initializers/backtrace_silencers.rb
  39. +10 −0 episode-306/blog-after/config/initializers/inflections.rb
  40. +5 −0 episode-306/blog-after/config/initializers/mime_types.rb
  41. +7 −0 episode-306/blog-after/config/initializers/secret_token.rb
  42. +8 −0 episode-306/blog-after/config/initializers/session_store.rb
  43. +14 −0 episode-306/blog-after/config/initializers/wrap_parameters.rb
  44. +5 −0 episode-306/blog-after/config/locales/en.yml
  45. +5 −0 episode-306/blog-after/config/routes.rb
  46. +12 −0 episode-306/blog-after/db/migrate/20111118235239_create_articles.rb
  47. +11 −0 episode-306/blog-after/db/migrate/20111118235527_create_comments.rb
  48. +8 −0 episode-306/blog-after/db/migrate/20111208233645_create_authors.rb
  49. +39 −0 episode-306/blog-after/db/schema.rb
  50. +34 −0 episode-306/blog-after/db/seeds.rb
  51. +2 −0 episode-306/blog-after/doc/README_FOR_APP
  52. 0 episode-306/blog-after/lib/assets/.gitkeep
  53. 0 episode-306/blog-after/lib/tasks/.gitkeep
  54. 0 episode-306/blog-after/log/.gitkeep
  55. +26 −0 episode-306/blog-after/public/404.html
  56. +26 −0 episode-306/blog-after/public/422.html
  57. +26 −0 episode-306/blog-after/public/500.html
  58. 0 episode-306/blog-after/public/favicon.ico
  59. +5 −0 episode-306/blog-after/public/robots.txt
  60. +6 −0 episode-306/blog-after/script/rails
  61. 0 episode-306/blog-after/vendor/assets/stylesheets/.gitkeep
  62. 0 episode-306/blog-after/vendor/plugins/.gitkeep
  63. +5 −0 episode-306/blog-before/.gitignore
  64. +19 −0 episode-306/blog-before/Gemfile
  65. +114 −0 episode-306/blog-before/Gemfile.lock
  66. +9 −0 episode-306/blog-before/README
  67. +7 −0 episode-306/blog-before/Rakefile
  68. BIN episode-306/blog-before/app/assets/images/rails.png
  69. +9 −0 episode-306/blog-before/app/assets/javascripts/application.js
  70. +3 −0 episode-306/blog-before/app/assets/javascripts/articles.js.coffee
  71. +3 −0 episode-306/blog-before/app/assets/javascripts/comments.js.coffee
  72. +146 −0 episode-306/blog-before/app/assets/stylesheets/application.css
  73. +49 −0 episode-306/blog-before/app/assets/stylesheets/articles.css.scss
  74. +3 −0 episode-306/blog-before/app/assets/stylesheets/comments.css.scss
  75. +3 −0 episode-306/blog-before/app/controllers/application_controller.rb
  76. +10 −0 episode-306/blog-before/app/controllers/articles_controller.rb
  77. +14 −0 episode-306/blog-before/app/controllers/comments_controller.rb
  78. +2 −0 episode-306/blog-before/app/helpers/application_helper.rb
  79. +2 −0 episode-306/blog-before/app/helpers/articles_helper.rb
  80. +2 −0 episode-306/blog-before/app/helpers/comments_helper.rb
  81. 0 episode-306/blog-before/app/mailers/.gitkeep
  82. 0 episode-306/blog-before/app/models/.gitkeep
  83. +4 −0 episode-306/blog-before/app/models/article.rb
  84. +2 −0 episode-306/blog-before/app/models/author.rb
  85. +3 −0 episode-306/blog-before/app/models/comment.rb
  86. +15 −0 episode-306/blog-before/app/views/articles/index.html.erb
  87. +24 −0 episode-306/blog-before/app/views/articles/show.html.erb
  88. +23 −0 episode-306/blog-before/app/views/comments/_form.html.erb
  89. +3 −0 episode-306/blog-before/app/views/comments/new.html.erb
  90. +17 −0 episode-306/blog-before/app/views/layouts/application.html.erb
  91. +4 −0 episode-306/blog-before/config.ru
  92. +48 −0 episode-306/blog-before/config/application.rb
  93. +6 −0 episode-306/blog-before/config/boot.rb
  94. +25 −0 episode-306/blog-before/config/database.yml
  95. +5 −0 episode-306/blog-before/config/environment.rb
  96. +30 −0 episode-306/blog-before/config/environments/development.rb
  97. +60 −0 episode-306/blog-before/config/environments/production.rb
  98. +39 −0 episode-306/blog-before/config/environments/test.rb
  99. +7 −0 episode-306/blog-before/config/initializers/backtrace_silencers.rb
  100. +10 −0 episode-306/blog-before/config/initializers/inflections.rb
  101. +5 −0 episode-306/blog-before/config/initializers/mime_types.rb
  102. +7 −0 episode-306/blog-before/config/initializers/secret_token.rb
  103. +8 −0 episode-306/blog-before/config/initializers/session_store.rb
  104. +14 −0 episode-306/blog-before/config/initializers/wrap_parameters.rb
  105. +5 −0 episode-306/blog-before/config/locales/en.yml
  106. +5 −0 episode-306/blog-before/config/routes.rb
  107. +12 −0 episode-306/blog-before/db/migrate/20111118235239_create_articles.rb
  108. +11 −0 episode-306/blog-before/db/migrate/20111118235527_create_comments.rb
  109. +8 −0 episode-306/blog-before/db/migrate/20111208233645_create_authors.rb
  110. +39 −0 episode-306/blog-before/db/schema.rb
  111. +30 −0 episode-306/blog-before/db/seeds.rb
  112. +2 −0 episode-306/blog-before/doc/README_FOR_APP
  113. 0 episode-306/blog-before/lib/assets/.gitkeep
  114. 0 episode-306/blog-before/lib/tasks/.gitkeep
  115. 0 episode-306/blog-before/log/.gitkeep
  116. +26 −0 episode-306/blog-before/public/404.html
  117. +26 −0 episode-306/blog-before/public/422.html
  118. +26 −0 episode-306/blog-before/public/500.html
  119. 0 episode-306/blog-before/public/favicon.ico
  120. +5 −0 episode-306/blog-before/public/robots.txt
  121. +6 −0 episode-306/blog-before/script/rails
  122. 0 episode-306/blog-before/vendor/assets/stylesheets/.gitkeep
  123. 0 episode-306/blog-before/vendor/plugins/.gitkeep
  124. +9 −0 episode-307/README
  125. +5 −0 episode-307/blog-after/.gitignore
  126. +22 −0 episode-307/blog-after/Gemfile
  127. +124 −0 episode-307/blog-after/Gemfile.lock
  128. +9 −0 episode-307/blog-after/README
  129. +7 −0 episode-307/blog-after/Rakefile
  130. BIN episode-307/blog-after/app/assets/images/rails.png
  131. +9 −0 episode-307/blog-after/app/assets/javascripts/application.js
  132. +3 −0 episode-307/blog-after/app/assets/javascripts/articles.js.coffee
  133. +3 −0 episode-307/blog-after/app/assets/javascripts/comments.js.coffee
  134. +146 −0 episode-307/blog-after/app/assets/stylesheets/application.css
  135. +49 −0 episode-307/blog-after/app/assets/stylesheets/articles.css.scss
  136. +3 −0 episode-307/blog-after/app/assets/stylesheets/comments.css.scss
  137. +3 −0 episode-307/blog-after/app/controllers/application_controller.rb
  138. +10 −0 episode-307/blog-after/app/controllers/articles_controller.rb
  139. +14 −0 episode-307/blog-after/app/controllers/comments_controller.rb
  140. +2 −0 episode-307/blog-after/app/helpers/application_helper.rb
  141. +2 −0 episode-307/blog-after/app/helpers/articles_helper.rb
  142. +2 −0 episode-307/blog-after/app/helpers/comments_helper.rb
  143. 0 episode-307/blog-after/app/mailers/.gitkeep
  144. 0 episode-307/blog-after/app/models/.gitkeep
  145. +47 −0 episode-307/blog-after/app/models/article.rb
  146. +2 −0 episode-307/blog-after/app/models/author.rb
  147. +3 −0 episode-307/blog-after/app/models/comment.rb
  148. +40 −0 episode-307/blog-after/app/views/articles/index.html.erb
  149. +24 −0 episode-307/blog-after/app/views/articles/show.html.erb
  150. +23 −0 episode-307/blog-after/app/views/comments/_form.html.erb
  151. +3 −0 episode-307/blog-after/app/views/comments/new.html.erb
  152. +17 −0 episode-307/blog-after/app/views/layouts/application.html.erb
  153. +4 −0 episode-307/blog-after/config.ru
  154. +48 −0 episode-307/blog-after/config/application.rb
  155. +6 −0 episode-307/blog-after/config/boot.rb
  156. +25 −0 episode-307/blog-after/config/database.yml
  157. +5 −0 episode-307/blog-after/config/environment.rb
  158. +30 −0 episode-307/blog-after/config/environments/development.rb
  159. +60 −0 episode-307/blog-after/config/environments/production.rb
  160. +39 −0 episode-307/blog-after/config/environments/test.rb
  161. +7 −0 episode-307/blog-after/config/initializers/backtrace_silencers.rb
  162. +10 −0 episode-307/blog-after/config/initializers/inflections.rb
  163. +5 −0 episode-307/blog-after/config/initializers/mime_types.rb
  164. +7 −0 episode-307/blog-after/config/initializers/secret_token.rb
  165. +8 −0 episode-307/blog-after/config/initializers/session_store.rb
  166. +14 −0 episode-307/blog-after/config/initializers/wrap_parameters.rb
  167. +5 −0 episode-307/blog-after/config/locales/en.yml
  168. +5 −0 episode-307/blog-after/config/routes.rb
  169. +12 −0 episode-307/blog-after/db/migrate/20111118235239_create_articles.rb
  170. +11 −0 episode-307/blog-after/db/migrate/20111118235527_create_comments.rb
  171. +8 −0 episode-307/blog-after/db/migrate/20111208233645_create_authors.rb
  172. +39 −0 episode-307/blog-after/db/schema.rb
  173. +34 −0 episode-307/blog-after/db/seeds.rb
  174. +2 −0 episode-307/blog-after/doc/README_FOR_APP
  175. 0 episode-307/blog-after/lib/assets/.gitkeep
  176. 0 episode-307/blog-after/lib/tasks/.gitkeep
  177. 0 episode-307/blog-after/log/.gitkeep
  178. +26 −0 episode-307/blog-after/public/404.html
  179. +26 −0 episode-307/blog-after/public/422.html
  180. +26 −0 episode-307/blog-after/public/500.html
  181. 0 episode-307/blog-after/public/favicon.ico
  182. +5 −0 episode-307/blog-after/public/robots.txt
  183. +6 −0 episode-307/blog-after/script/rails
  184. 0 episode-307/blog-after/vendor/assets/stylesheets/.gitkeep
  185. 0 episode-307/blog-after/vendor/plugins/.gitkeep
  186. +5 −0 episode-307/blog-before/.gitignore
  187. +21 −0 episode-307/blog-before/Gemfile
  188. +122 −0 episode-307/blog-before/Gemfile.lock
  189. +9 −0 episode-307/blog-before/README
  190. +7 −0 episode-307/blog-before/Rakefile
  191. BIN episode-307/blog-before/app/assets/images/rails.png
  192. +9 −0 episode-307/blog-before/app/assets/javascripts/application.js
  193. +3 −0 episode-307/blog-before/app/assets/javascripts/articles.js.coffee
  194. +3 −0 episode-307/blog-before/app/assets/javascripts/comments.js.coffee
  195. +146 −0 episode-307/blog-before/app/assets/stylesheets/application.css
  196. +49 −0 episode-307/blog-before/app/assets/stylesheets/articles.css.scss
  197. +3 −0 episode-307/blog-before/app/assets/stylesheets/comments.css.scss
  198. +3 −0 episode-307/blog-before/app/controllers/application_controller.rb
  199. +10 −0 episode-307/blog-before/app/controllers/articles_controller.rb
  200. +14 −0 episode-307/blog-before/app/controllers/comments_controller.rb
  201. +2 −0 episode-307/blog-before/app/helpers/application_helper.rb
  202. +2 −0 episode-307/blog-before/app/helpers/articles_helper.rb
  203. +2 −0 episode-307/blog-before/app/helpers/comments_helper.rb
  204. 0 episode-307/blog-before/app/mailers/.gitkeep
  205. 0 episode-307/blog-before/app/models/.gitkeep
  206. +14 −0 episode-307/blog-before/app/models/article.rb
  207. +2 −0 episode-307/blog-before/app/models/author.rb
  208. +3 −0 episode-307/blog-before/app/models/comment.rb
  209. +22 −0 episode-307/blog-before/app/views/articles/index.html.erb
  210. +24 −0 episode-307/blog-before/app/views/articles/show.html.erb
  211. +23 −0 episode-307/blog-before/app/views/comments/_form.html.erb
  212. +3 −0 episode-307/blog-before/app/views/comments/new.html.erb
  213. +17 −0 episode-307/blog-before/app/views/layouts/application.html.erb
  214. +4 −0 episode-307/blog-before/config.ru
  215. +48 −0 episode-307/blog-before/config/application.rb
  216. +6 −0 episode-307/blog-before/config/boot.rb
  217. +25 −0 episode-307/blog-before/config/database.yml
  218. +5 −0 episode-307/blog-before/config/environment.rb
  219. +30 −0 episode-307/blog-before/config/environments/development.rb
  220. +60 −0 episode-307/blog-before/config/environments/production.rb
  221. +39 −0 episode-307/blog-before/config/environments/test.rb
  222. +7 −0 episode-307/blog-before/config/initializers/backtrace_silencers.rb
  223. +10 −0 episode-307/blog-before/config/initializers/inflections.rb
  224. +5 −0 episode-307/blog-before/config/initializers/mime_types.rb
  225. +7 −0 episode-307/blog-before/config/initializers/secret_token.rb
  226. +8 −0 episode-307/blog-before/config/initializers/session_store.rb
  227. +14 −0 episode-307/blog-before/config/initializers/wrap_parameters.rb
  228. +5 −0 episode-307/blog-before/config/locales/en.yml
  229. +5 −0 episode-307/blog-before/config/routes.rb
  230. +12 −0 episode-307/blog-before/db/migrate/20111118235239_create_articles.rb
  231. +11 −0 episode-307/blog-before/db/migrate/20111118235527_create_comments.rb
  232. +8 −0 episode-307/blog-before/db/migrate/20111208233645_create_authors.rb
  233. +39 −0 episode-307/blog-before/db/schema.rb
  234. +34 −0 episode-307/blog-before/db/seeds.rb
  235. +2 −0 episode-307/blog-before/doc/README_FOR_APP
  236. 0 episode-307/blog-before/lib/assets/.gitkeep
  237. 0 episode-307/blog-before/lib/tasks/.gitkeep
  238. 0 episode-307/blog-before/log/.gitkeep
  239. +26 −0 episode-307/blog-before/public/404.html
  240. +26 −0 episode-307/blog-before/public/422.html
  241. +26 −0 episode-307/blog-before/public/500.html
  242. 0 episode-307/blog-before/public/favicon.ico
  243. +5 −0 episode-307/blog-before/public/robots.txt
  244. +6 −0 episode-307/blog-before/script/rails
  245. 0 episode-307/blog-before/vendor/assets/stylesheets/.gitkeep
  246. 0 episode-307/blog-before/vendor/plugins/.gitkeep
View
@@ -0,0 +1,11 @@
+RailsCasts Episode #306: ElasticSearch Part 1
+
+http://railscasts.com/episodes/306-elasticsearch-part-1
+
+Commands used in episode
+
+ brew install elasticsearch
+ elasticsearch -f -D es.config=/usr/local/Cellar/elasticsearch/0.18.5/config/elasticsearch.yml
+ rake db:setup
+
+Require Ruby 1.9.2 or later to run example.
@@ -0,0 +1,5 @@
+.bundle
+db/*.sqlite3
+log/*.log
+tmp/
+.sass-cache/
@@ -0,0 +1,21 @@
+source 'http://rubygems.org'
+
+gem 'rails', '3.1.3'
+
+# 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.4'
+ gem 'coffee-rails', '~> 3.1.1'
+ gem 'uglifier', '>= 1.0.3'
+end
+
+gem 'jquery-rails'
+
+gem 'tire'
@@ -0,0 +1,122 @@
+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)
+ 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.1.3)
+ erubis (2.7.0)
+ execjs (1.2.12)
+ 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.3)
+ 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.5)
+ 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.11)
+ json (~> 1.4)
+ rest-client (1.6.7)
+ mime-types (>= 1.16)
+ sass (3.1.11)
+ 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.4)
+ thor (0.14.6)
+ tilt (1.3.3)
+ tire (0.3.12)
+ activemodel (~> 3.0)
+ multi_json (~> 1.0)
+ rake
+ rest-client (~> 1.6.0)
+ treetop (1.4.10)
+ polyglot
+ polyglot (>= 0.3.1)
+ tzinfo (0.3.31)
+ uglifier (1.1.0)
+ execjs (>= 0.3.0)
+ multi_json (>= 1.0.2)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ coffee-rails (~> 3.1.1)
+ jquery-rails
+ rails (= 3.1.3)
+ sass-rails (~> 3.1.4)
+ sqlite3
+ tire
+ 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,9 @@
+// This is a manifest file that'll be compiled into including all the files listed below.
+// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
+// be included in the compiled file accessible from http://example.com/assets/application.js
+// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
+// the compiled file.
+//
+//= 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,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,49 @@
+// 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/
+
+.pagination {
+ background: white;
+ cursor: default;
+ height: 22px;
+ margin-top: 20px;
+ a, span, em {
+ padding: 0.2em 0.5em;
+ display: block;
+ float: left;
+ margin-right: 1px;
+ }
+ .disabled {
+ color: #777;
+ border: 1px solid #CCC;
+ }
+ .current {
+ font-style: normal;
+ font-weight: bold;
+ background: #2e6ab1;
+ color: white;
+ border: 1px solid #2e6ab1;
+ }
+ a {
+ text-decoration: none;
+ color: #105cb6;
+ border: 1px solid #9aafe5;
+ &:hover, &:focus {
+ color: #000033;
+ border-color: #000033;
+ }
+ }
+ .page_info {
+ background: #2e6ab1;
+ color: white;
+ padding: 0.4em 0.6em;
+ width: 22em;
+ margin-bottom: 0.3em;
+ text-align: center;
+ b {
+ color: #000033;
+ background: #2e6ab1 + 60;
+ padding: 0.1em 0.25em;
+ }
+ }
+}
@@ -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/
Oops, something went wrong. Retry.

0 comments on commit bc63455

Please sign in to comment.