Permalink
Browse files

adding eisode 172

  • Loading branch information...
1 parent 06e2e20 commit e4332dab06a40b27f1c0fa66433a1f42b1778ed6 @ryanb committed Jul 27, 2009
Showing with 12 additions and 20 deletions.
  1. +0 −19 episode-166/README
  2. +11 −0 episode-172/README
  3. 0 {episode-166 → episode-172}/blog/.gitignore
  4. 0 {episode-166 → episode-172}/blog/README
  5. 0 {episode-166 → episode-172}/blog/Rakefile
  6. 0 {episode-166 → episode-172}/blog/app/controllers/application_controller.rb
  7. 0 {episode-166 → episode-172}/blog/app/controllers/articles_controller.rb
  8. 0 {episode-166 → episode-172}/blog/app/controllers/comments_controller.rb
  9. 0 {episode-166 → episode-172}/blog/app/helpers/application_helper.rb
  10. 0 {episode-166 → episode-172}/blog/app/helpers/articles_helper.rb
  11. 0 {episode-166 → episode-172}/blog/app/helpers/comments_helper.rb
  12. 0 {episode-166 → episode-172}/blog/app/helpers/layout_helper.rb
  13. 0 {episode-166 → episode-172}/blog/app/models/article.rb
  14. 0 {episode-166 → episode-172}/blog/app/models/comment.rb
  15. 0 {episode-166 → episode-172}/blog/app/views/articles/_form.html.erb
  16. 0 {episode-166 → episode-172}/blog/app/views/articles/edit.html.erb
  17. 0 {episode-166 → episode-172}/blog/app/views/articles/index.html.erb
  18. 0 {episode-166 → episode-172}/blog/app/views/articles/new.html.erb
  19. +1 −1 {episode-166 → episode-172}/blog/app/views/articles/show.html.erb
  20. 0 {episode-166 → episode-172}/blog/app/views/comments/_form.html.erb
  21. 0 {episode-166 → episode-172}/blog/app/views/comments/edit.html.erb
  22. 0 {episode-166 → episode-172}/blog/app/views/comments/new.html.erb
  23. 0 {episode-166 → episode-172}/blog/app/views/layouts/application.html.erb
  24. 0 {episode-166 → episode-172}/blog/config/boot.rb
  25. 0 {episode-166 → episode-172}/blog/config/database.yml
  26. 0 {episode-166 → episode-172}/blog/config/environment.rb
  27. 0 {episode-166 → episode-172}/blog/config/environments/development.rb
  28. 0 {episode-166 → episode-172}/blog/config/environments/production.rb
  29. 0 {episode-166 → episode-172}/blog/config/environments/test.rb
  30. 0 {episode-166 → episode-172}/blog/config/initializers/inflections.rb
  31. 0 {episode-166 → episode-172}/blog/config/initializers/mime_types.rb
  32. 0 {episode-166 → episode-172}/blog/config/initializers/new_rails_defaults.rb
  33. 0 {episode-166 → episode-172}/blog/config/routes.rb
  34. 0 {episode-166 → episode-172}/blog/db/migrate/20080719200447_create_articles.rb
  35. 0 {episode-166 → episode-172}/blog/db/migrate/20080719201435_create_comments.rb
  36. 0 {episode-166 → episode-172}/blog/db/schema.rb
  37. 0 {episode-166 → episode-172}/blog/doc/README_FOR_APP
  38. 0 {episode-166 → episode-172}/blog/lib/tasks/application.rake
  39. 0 {episode-166 → episode-172}/blog/public/404.html
  40. 0 {episode-166 → episode-172}/blog/public/422.html
  41. 0 {episode-166 → episode-172}/blog/public/500.html
  42. 0 {episode-166 → episode-172}/blog/public/dispatch.cgi
  43. 0 {episode-166 → episode-172}/blog/public/dispatch.fcgi
  44. 0 {episode-166 → episode-172}/blog/public/dispatch.rb
  45. 0 {episode-166 → episode-172}/blog/public/favicon.ico
  46. 0 {episode-166 → episode-172}/blog/public/javascripts/application.js
  47. 0 {episode-166 → episode-172}/blog/public/javascripts/controls.js
  48. 0 {episode-166 → episode-172}/blog/public/javascripts/dragdrop.js
  49. 0 {episode-166 → episode-172}/blog/public/javascripts/effects.js
  50. 0 {episode-166 → episode-172}/blog/public/javascripts/prototype.js
  51. 0 {episode-166 → episode-172}/blog/public/robots.txt
  52. 0 {episode-166 → episode-172}/blog/public/stylesheets/application.css
  53. 0 {episode-166 → episode-172}/blog/script/about
  54. 0 {episode-166 → episode-172}/blog/script/console
  55. 0 {episode-166 → episode-172}/blog/script/dbconsole
  56. 0 {episode-166 → episode-172}/blog/script/destroy
  57. 0 {episode-166 → episode-172}/blog/script/generate
  58. 0 {episode-166 → episode-172}/blog/script/performance/benchmarker
  59. 0 {episode-166 → episode-172}/blog/script/performance/profiler
  60. 0 {episode-166 → episode-172}/blog/script/performance/request
  61. 0 {episode-166 → episode-172}/blog/script/plugin
  62. 0 {episode-166 → episode-172}/blog/script/process/inspector
  63. 0 {episode-166 → episode-172}/blog/script/process/reaper
  64. 0 {episode-166 → episode-172}/blog/script/process/spawner
  65. 0 {episode-166 → episode-172}/blog/script/runner
  66. 0 {episode-166 → episode-172}/blog/script/server
  67. 0 {episode-166 → episode-172}/blog/test/fixtures/articles.yml
  68. 0 {episode-166 → episode-172}/blog/test/fixtures/comments.yml
  69. 0 {episode-166 → episode-172}/blog/test/functional/articles_controller_test.rb
  70. 0 {episode-166 → episode-172}/blog/test/functional/comments_controller_test.rb
  71. 0 {episode-166 → episode-172}/blog/test/test_helper.rb
  72. 0 {episode-166 → episode-172}/blog/test/unit/article_test.rb
  73. 0 {episode-166 → episode-172}/blog/test/unit/comment_test.rb
View
@@ -1,19 +0,0 @@
-Railscasts Episode #166: Touch and Cache
-
-http://railscasts.com/episodes/166
-
-script/console
-
- a = Article.first
- a.updated_at
- a.update_attributes(:author_name => "Ryan")
- a.updated_at
- a.touch
- a.updated_at
- a.cache_key
- a.touch
- a.cache_key
- c = Comment.first
- c.update_attributes(:author_name => "Joe")
- c.updated_at
- c.article.updated_at
View
@@ -0,0 +1,11 @@
+Railscasts Episode #172: Touch and Cache
+
+http://railscasts.com/episodes/172
+
+script/console
+
+ a = Article.first
+ a.cache_key
+ a.updated_at
+ a.touch
+ a.updated_at
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -5,7 +5,7 @@
<%=simple_format @article.content %>
- <p><%= link_to "Back to Articles", articles_path %></p>
+ <p><%= link_to "Edit", edit_article_path(@article) %> | <%= link_to "Back to Articles", articles_path %></p>
<% unless @article.comments.empty? %>
<h2><%= pluralize(@article.comments.size, 'comment') %></h2>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit e4332da

Please sign in to comment.