Permalink
Browse files

automatic import from ryanb/railscasts-episodes

  • Loading branch information...
0 parents commit 1d017ca7ee7e55de818ecd8bf68e04d146c6fcbf @ryanb ryanb committed Mar 22, 2012
Showing with 1,664 additions and 0 deletions.
  1. +11 −0 README.md
  2. +15 −0 railscasts-after/.gitignore
  3. +40 −0 railscasts-after/Gemfile
  4. +120 −0 railscasts-after/Gemfile.lock
  5. +8 −0 railscasts-after/README.rdoc
  6. +7 −0 railscasts-after/Rakefile
  7. BIN railscasts-after/app/assets/images/icons-s1286bd1660.png
  8. BIN railscasts-after/app/assets/images/icons/facebook.png
  9. BIN railscasts-after/app/assets/images/icons/itunes.png
  10. BIN railscasts-after/app/assets/images/icons/rss.png
  11. BIN railscasts-after/app/assets/images/icons/twitter.png
  12. BIN railscasts-after/app/assets/images/railscasts_logo.png
  13. +15 −0 railscasts-after/app/assets/javascripts/application.js
  14. +3 −0 railscasts-after/app/assets/stylesheets/application.css.scss
  15. +99 −0 railscasts-after/app/assets/stylesheets/layout.css.scss
  16. +3 −0 railscasts-after/app/controllers/application_controller.rb
  17. +4 −0 railscasts-after/app/controllers/home_controller.rb
  18. +2 −0 railscasts-after/app/helpers/application_helper.rb
  19. +2 −0 railscasts-after/app/helpers/home_helper.rb
  20. 0 railscasts-after/app/mailers/.gitkeep
  21. 0 railscasts-after/app/models/.gitkeep
  22. +2 −0 railscasts-after/app/views/home/index.html.erb
  23. +49 −0 railscasts-after/app/views/layouts/application.html.erb
  24. +4 −0 railscasts-after/config.ru
  25. +59 −0 railscasts-after/config/application.rb
  26. +6 −0 railscasts-after/config/boot.rb
  27. +25 −0 railscasts-after/config/database.yml
  28. +5 −0 railscasts-after/config/environment.rb
  29. +37 −0 railscasts-after/config/environments/development.rb
  30. +67 −0 railscasts-after/config/environments/production.rb
  31. +37 −0 railscasts-after/config/environments/test.rb
  32. +7 −0 railscasts-after/config/initializers/backtrace_silencers.rb
  33. +15 −0 railscasts-after/config/initializers/inflections.rb
  34. +5 −0 railscasts-after/config/initializers/mime_types.rb
  35. +7 −0 railscasts-after/config/initializers/secret_token.rb
  36. +8 −0 railscasts-after/config/initializers/session_store.rb
  37. +14 −0 railscasts-after/config/initializers/wrap_parameters.rb
  38. +5 −0 railscasts-after/config/locales/en.yml
  39. +3 −0 railscasts-after/config/routes.rb
  40. +16 −0 railscasts-after/db/schema.rb
  41. +7 −0 railscasts-after/db/seeds.rb
  42. +2 −0 railscasts-after/doc/README_FOR_APP
  43. 0 railscasts-after/lib/assets/.gitkeep
  44. 0 railscasts-after/lib/tasks/.gitkeep
  45. 0 railscasts-after/log/.gitkeep
  46. +26 −0 railscasts-after/public/404.html
  47. +26 −0 railscasts-after/public/422.html
  48. +25 −0 railscasts-after/public/500.html
  49. 0 railscasts-after/public/favicon.ico
  50. +5 −0 railscasts-after/public/robots.txt
  51. +6 −0 railscasts-after/script/rails
  52. 0 railscasts-after/test/fixtures/.gitkeep
  53. 0 railscasts-after/test/functional/.gitkeep
  54. +9 −0 railscasts-after/test/functional/home_controller_test.rb
  55. 0 railscasts-after/test/integration/.gitkeep
  56. +12 −0 railscasts-after/test/performance/browsing_test.rb
  57. +13 −0 railscasts-after/test/test_helper.rb
  58. 0 railscasts-after/test/unit/.gitkeep
  59. +4 −0 railscasts-after/test/unit/helpers/home_helper_test.rb
  60. 0 railscasts-after/vendor/assets/javascripts/.gitkeep
  61. 0 railscasts-after/vendor/assets/stylesheets/.gitkeep
  62. 0 railscasts-after/vendor/plugins/.gitkeep
  63. +15 −0 railscasts-before/.gitignore
  64. +38 −0 railscasts-before/Gemfile
  65. +111 −0 railscasts-before/Gemfile.lock
  66. +8 −0 railscasts-before/README.rdoc
  67. +7 −0 railscasts-before/Rakefile
  68. BIN railscasts-before/app/assets/images/icons/facebook.png
  69. BIN railscasts-before/app/assets/images/icons/itunes.png
  70. BIN railscasts-before/app/assets/images/icons/rss.png
  71. BIN railscasts-before/app/assets/images/icons/twitter.png
  72. BIN railscasts-before/app/assets/images/railscasts_logo.png
  73. +15 −0 railscasts-before/app/assets/javascripts/application.js
  74. +13 −0 railscasts-before/app/assets/stylesheets/application.css
  75. +105 −0 railscasts-before/app/assets/stylesheets/layout.css.scss
  76. +3 −0 railscasts-before/app/controllers/application_controller.rb
  77. +4 −0 railscasts-before/app/controllers/home_controller.rb
  78. +2 −0 railscasts-before/app/helpers/application_helper.rb
  79. +2 −0 railscasts-before/app/helpers/home_helper.rb
  80. 0 railscasts-before/app/mailers/.gitkeep
  81. 0 railscasts-before/app/models/.gitkeep
  82. +2 −0 railscasts-before/app/views/home/index.html.erb
  83. +49 −0 railscasts-before/app/views/layouts/application.html.erb
  84. +4 −0 railscasts-before/config.ru
  85. +59 −0 railscasts-before/config/application.rb
  86. +6 −0 railscasts-before/config/boot.rb
  87. +25 −0 railscasts-before/config/database.yml
  88. +5 −0 railscasts-before/config/environment.rb
  89. +37 −0 railscasts-before/config/environments/development.rb
  90. +67 −0 railscasts-before/config/environments/production.rb
  91. +37 −0 railscasts-before/config/environments/test.rb
  92. +7 −0 railscasts-before/config/initializers/backtrace_silencers.rb
  93. +15 −0 railscasts-before/config/initializers/inflections.rb
  94. +5 −0 railscasts-before/config/initializers/mime_types.rb
  95. +7 −0 railscasts-before/config/initializers/secret_token.rb
  96. +8 −0 railscasts-before/config/initializers/session_store.rb
  97. +14 −0 railscasts-before/config/initializers/wrap_parameters.rb
  98. +5 −0 railscasts-before/config/locales/en.yml
  99. +3 −0 railscasts-before/config/routes.rb
  100. +16 −0 railscasts-before/db/schema.rb
  101. +7 −0 railscasts-before/db/seeds.rb
  102. +2 −0 railscasts-before/doc/README_FOR_APP
  103. 0 railscasts-before/lib/assets/.gitkeep
  104. 0 railscasts-before/lib/tasks/.gitkeep
  105. 0 railscasts-before/log/.gitkeep
  106. +26 −0 railscasts-before/public/404.html
  107. +26 −0 railscasts-before/public/422.html
  108. +25 −0 railscasts-before/public/500.html
  109. 0 railscasts-before/public/favicon.ico
  110. +5 −0 railscasts-before/public/robots.txt
  111. +6 −0 railscasts-before/script/rails
  112. 0 railscasts-before/test/fixtures/.gitkeep
  113. 0 railscasts-before/test/functional/.gitkeep
  114. +9 −0 railscasts-before/test/functional/home_controller_test.rb
  115. 0 railscasts-before/test/integration/.gitkeep
  116. +12 −0 railscasts-before/test/performance/browsing_test.rb
  117. +13 −0 railscasts-before/test/test_helper.rb
  118. 0 railscasts-before/test/unit/.gitkeep
  119. +4 −0 railscasts-before/test/unit/helpers/home_helper_test.rb
  120. 0 railscasts-before/vendor/assets/javascripts/.gitkeep
  121. 0 railscasts-before/vendor/assets/stylesheets/.gitkeep
  122. 0 railscasts-before/vendor/plugins/.gitkeep
@@ -0,0 +1,11 @@
+# RailsCasts Episode #334: Compass & CSS Sprites
+
+http://railscasts.com/episodes/334-compass-css-sprites
+
+Requires Ruby 1.9.2 or higher.
+
+Commands used in episode:
+
+```
+
+```
@@ -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,40 @@
+source 'https://rubygems.org'
+
+gem 'rails', '3.2.2'
+
+# 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'
+
+ gem 'compass-rails'
+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 app server
+# gem 'unicorn'
+
+# Deploy with Capistrano
+# gem 'capistrano'
+
+# To use debugger
+# gem 'ruby-debug19', :require => 'ruby-debug'
@@ -0,0 +1,120 @@
+GEM
+ remote: https://rubygems.org/
+ specs:
+ actionmailer (3.2.2)
+ actionpack (= 3.2.2)
+ mail (~> 2.4.0)
+ actionpack (3.2.2)
+ activemodel (= 3.2.2)
+ activesupport (= 3.2.2)
+ 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.2)
+ activesupport (= 3.2.2)
+ builder (~> 3.0.0)
+ activerecord (3.2.2)
+ activemodel (= 3.2.2)
+ activesupport (= 3.2.2)
+ arel (~> 3.0.2)
+ tzinfo (~> 0.3.29)
+ activeresource (3.2.2)
+ activemodel (= 3.2.2)
+ activesupport (= 3.2.2)
+ activesupport (3.2.2)
+ i18n (~> 0.6)
+ multi_json (~> 1.0)
+ arel (3.0.2)
+ builder (3.0.0)
+ chunky_png (1.2.5)
+ 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)
+ compass (0.12.1)
+ chunky_png (~> 1.2)
+ fssm (>= 0.2.7)
+ sass (~> 3.1)
+ compass-rails (1.0.1)
+ compass (~> 0.12.0)
+ erubis (2.7.0)
+ execjs (1.3.0)
+ multi_json (~> 1.0)
+ fssm (0.2.8.1)
+ hike (1.2.1)
+ i18n (0.6.0)
+ journey (1.0.3)
+ jquery-rails (2.0.1)
+ railties (>= 3.2.0, < 5.0)
+ thor (~> 0.14)
+ json (1.6.5)
+ mail (2.4.4)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.17.2)
+ multi_json (1.1.0)
+ polyglot (0.3.3)
+ rack (1.4.1)
+ rack-cache (1.2)
+ rack (>= 0.4)
+ rack-ssl (1.3.2)
+ rack
+ rack-test (0.6.1)
+ rack (>= 1.0)
+ rails (3.2.2)
+ actionmailer (= 3.2.2)
+ actionpack (= 3.2.2)
+ activerecord (= 3.2.2)
+ activeresource (= 3.2.2)
+ activesupport (= 3.2.2)
+ bundler (~> 1.0)
+ railties (= 3.2.2)
+ railties (3.2.2)
+ actionpack (= 3.2.2)
+ activesupport (= 3.2.2)
+ 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.15)
+ sass-rails (3.2.5)
+ 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.32)
+ uglifier (1.2.3)
+ execjs (>= 0.3.0)
+ multi_json (>= 1.0.2)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ coffee-rails (~> 3.2.1)
+ compass-rails
+ jquery-rails
+ rails (= 3.2.2)
+ sass-rails (~> 3.2.3)
+ sqlite3
+ uglifier (>= 1.0.3)
@@ -0,0 +1,8 @@
+= RailsCasts Example Application
+
+Run these commands to try it out.
+
+ bundle
+ rails s
+
+Requires Ruby 1.9.2 or higher.
@@ -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__)
+
+Railscasts::Application.load_tasks
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 @@
+@import "compass";
+@import "compass/reset";
+@import "layout";
@@ -0,0 +1,99 @@
+body {
+ background-color: #FFF;
+ font-family: Verdana, Geneva, sans-serif;
+ font-size: 14px;
+ margin: 0;
+ line-height: 1.2em;
+}
+
+h1 {
+ font-size: 28px;
+ font-weight: bold;
+ margin: 18px 0;
+}
+
+a {
+ color: #1B97F2;
+ text-decoration: none;
+ &:hover { text-decoration: underline; }
+}
+
+ul.horizontal {
+ @include horizontal-list;
+}
+
+#top {
+ position: relative;
+ padding-top: 1px;
+ .logo {
+ margin-top: 50px;
+ margin-left: 100px;
+ padding-bottom: 10px;
+ }
+ .user_nav {
+ color: #777;
+ font-size: 12px;
+ position: absolute;
+ top: 15px;
+ right: 100px;
+ a {
+ color: #777;
+ text-decoration: underline;
+ }
+ }
+}
+
+@import "icons/*.png";
+@include all-icons-sprites;
+
+#subscribe {
+ position: absolute;
+ bottom: 10px;
+ right: 100px;
+ li {
+ position: relative;
+ margin-left: 8px;
+ font-size: 12px;
+ }
+ a {
+ display: block;
+ width: 34px;
+ height: 34px;
+ }
+}
+
+
+#nav_bar {
+ position: relative;
+ padding: 8px 100px;
+ margin-bottom: 15px;
+ border-top: solid 1px #FFF;
+ border-bottom: solid 3px #DE9F00;
+ background-color: #333;
+ @include background-image(linear-gradient(#5c5c5c, #111111));
+
+ .nav {
+ float: right;
+ padding-top: 2px;
+ li {
+ padding-left: 25px;
+ font-size: 14px;
+ color: #BBB;
+ a { color: #FFF; }
+ }
+ }
+}
+
+#main {
+ max-width: 1500px;
+ margin: 0 100px;
+ margin-top: 35px;
+}
+
+#footer {
+ clear: both;
+ font-size: 11px;
+ text-align: center;
+ padding: 25px 0;
+ color: #555;
+}
@@ -0,0 +1,3 @@
+class ApplicationController < ActionController::Base
+ protect_from_forgery
+end
@@ -0,0 +1,4 @@
+class HomeController < ApplicationController
+ def index
+ end
+end
@@ -0,0 +1,2 @@
+module ApplicationHelper
+end
@@ -0,0 +1,2 @@
+module HomeHelper
+end
No changes.
No changes.
@@ -0,0 +1,2 @@
+<h1>Welcome</h1>
+<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
@@ -0,0 +1,49 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Ruby on Rails Screencasts - RailsCasts</title>
+ <%= stylesheet_link_tag "application", media: "all" %>
+ <%= javascript_include_tag "application" %>
+ <%= csrf_meta_tags %>
+ </head>
+ <body>
+ <div id="top">
+ <div class="logo"><%= link_to image_tag("railscasts_logo.png", alt: "RailsCasts"), root_path %></div>
+ <div class="user_nav">
+ <%= link_to "Sign in through GitHub" %>
+ </div>
+ <ul id="subscribe" class="horizontal">
+ <li><a class="icons-itunes" href="/itunes"></a></li>
+ <li><a class="icons-twitter" href="/twitter"></a></li>
+ <li><a class="icons-facebook" href="/facebook"></a></li>
+ <li><a class="icons-rss" href="/rss"></a></li>
+ </ul>
+ </div>
+
+ <div id="nav_bar">
+ <ul class="nav horizontal">
+ <li><%= link_to "Browse Episodes" %></li>
+ <li><%= link_to "RailsCasts Pro" %></li>
+ <li><%= link_to "About" %></li>
+ <li><%= link_to "Feedback" %></li>
+ </ul>
+ <%= form_tag "/episodes", method: "get" do %>
+ <%= text_field_tag :search, params[:search], :size => 35 %>
+ <%= submit_tag "Search Episodes", :name => nil %>
+ <% end %>
+ </div>
+
+ <% flash.each do |name, msg| %>
+ <%= content_tag(:div, raw(msg), id: "flash_#{name}") %>
+ <% end %>
+
+ <div id="main">
+ <%= yield %>
+ </div>
+ <div id="footer">
+ <div class="inner">
+ &copy;<%= Date.today.year %> RailsCasts
+ </div>
+ </div>
+ </body>
+</html>
Oops, something went wrong.

0 comments on commit 1d017ca

Please sign in to comment.