From c2eb24494920b8a6a3b2a1d7be16da66023c3ef5 Mon Sep 17 00:00:00 2001 From: Nathan Amick Date: Sat, 7 Feb 2015 14:59:56 -0800 Subject: [PATCH 1/3] Replace dummy app with fresh Rails v4.2.0 --- spec/dummy/.gitignore | 17 + spec/dummy/Gemfile | 45 + spec/dummy/Gemfile.lock | 164 ++ spec/dummy/README.rdoc | 263 +-- spec/dummy/Rakefile | 3 +- .../{mailers/.gitkeep => assets/images/.keep} | 0 .../app/assets/javascripts/application.js | 8 +- .../app/assets/stylesheets/application.css | 12 +- .../app/controllers/application_controller.rb | 4 +- .../.gitkeep => controllers/concerns/.keep} | 0 .../assets/.gitkeep => app/mailers/.keep} | 0 spec/dummy/{log/.gitkeep => app/models/.keep} | 0 spec/dummy/app/models/concerns/.keep | 0 .../app/views/layouts/application.html.erb | 4 +- spec/dummy/bin/bundle | 3 + spec/dummy/bin/rails | 8 + spec/dummy/bin/rake | 8 + spec/dummy/bin/setup | 29 + spec/dummy/bin/spring | 18 + spec/dummy/config.ru | 4 +- spec/dummy/config/application.rb | 49 +- spec/dummy/config/boot.rb | 11 +- spec/dummy/config/database.yml | 16 +- spec/dummy/config/environment.rb | 6 +- spec/dummy/config/environments/development.rb | 40 +- spec/dummy/config/environments/production.rb | 80 +- spec/dummy/config/environments/test.rb | 33 +- spec/dummy/config/initializers/assets.rb | 11 + .../config/initializers/cookies_serializer.rb | 3 + .../initializers/filter_parameter_logging.rb | 4 + spec/dummy/config/initializers/inflections.rb | 11 +- spec/dummy/config/initializers/mime_types.rb | 1 - .../config/initializers/session_store.rb | 7 +- .../config/initializers/wrap_parameters.rb | 12 +- spec/dummy/config/locales/en.yml | 22 +- spec/dummy/config/routes.rb | 5 +- spec/dummy/config/secrets.yml | 22 + spec/dummy/db/schema.rb | 27 +- spec/dummy/db/seeds.rb | 7 + spec/dummy/lib/assets/.keep | 0 spec/dummy/lib/tasks/.keep | 0 spec/dummy/log/.keep | 0 spec/dummy/public/404.html | 67 +- spec/dummy/public/422.html | 67 +- spec/dummy/public/500.html | 65 +- spec/dummy/public/robots.txt | 5 + spec/dummy/test/controllers/.keep | 0 spec/dummy/test/fixtures/.keep | 0 spec/dummy/test/helpers/.keep | 0 spec/dummy/test/integration/.keep | 0 spec/dummy/test/mailers/.keep | 0 spec/dummy/test/models/.keep | 0 spec/dummy/test/test_helper.rb | 10 + spec/dummy/vendor/assets/javascripts/.keep | 0 spec/dummy/vendor/assets/stylesheets/.keep | 0 spec/{dummy => dummy_rails_3}/.rspec | 0 spec/dummy_rails_3/README.rdoc | 261 +++ spec/dummy_rails_3/Rakefile | 7 + .../app/assets/javascripts/application.js | 13 + .../app/assets/stylesheets/application.css | 13 + .../app/controllers/application_controller.rb | 3 + .../app/controllers/comments_controller.rb | 13 + .../app/controllers/posts_controller.rb | 23 + .../app/helpers/application_helper.rb | 2 + .../app/helpers/comments_helper.rb | 0 .../app/helpers/posts_helper.rb | 0 spec/dummy_rails_3/app/mailers/.gitkeep | 0 spec/dummy_rails_3/app/models/.gitkeep | 0 spec/dummy_rails_3/app/models/comment.rb | 3 + spec/dummy_rails_3/app/models/post.rb | 5 + spec/dummy_rails_3/app/models/user.rb | 2 + .../app/views/layouts/application.html.erb | 14 + .../app/views/posts/index.html.erb | 5 + .../app/views/posts/new.html.erb | 6 + .../app/views/posts/show.html.erb | 20 + spec/dummy_rails_3/config.ru | 4 + spec/dummy_rails_3/config/application.rb | 62 + spec/dummy_rails_3/config/boot.rb | 10 + spec/dummy_rails_3/config/database.yml | 25 + spec/dummy_rails_3/config/environment.rb | 5 + .../config/environments/development.rb | 37 + .../config/environments/production.rb | 67 + .../dummy_rails_3/config/environments/test.rb | 37 + .../initializers/backtrace_silencers.rb | 7 + .../config/initializers/inflections.rb | 15 + .../config/initializers/mime_types.rb | 5 + .../config/initializers/secret_token.rb | 0 .../config/initializers/session_store.rb | 8 + .../config/initializers/wrap_parameters.rb | 14 + spec/dummy_rails_3/config/locales/en.yml | 5 + spec/dummy_rails_3/config/routes.rb | 5 + spec/dummy_rails_3/db/development.sqlite3 | 0 .../db/migrate/20120201032713_create_posts.rb | 9 + .../migrate/20120201053634_create_comments.rb | 10 + .../db/migrate/20120208222551_create_users.rb | 9 + spec/dummy_rails_3/db/schema.rb | 40 + spec/dummy_rails_3/db/test.sqlite3 | Bin 0 -> 32768 bytes spec/dummy_rails_3/lib/assets/.gitkeep | 0 spec/dummy_rails_3/log/.gitkeep | 0 spec/dummy_rails_3/log/development.log | 24 + spec/dummy_rails_3/log/test.log | 1998 +++++++++++++++++ spec/dummy_rails_3/public/404.html | 26 + spec/dummy_rails_3/public/422.html | 26 + spec/dummy_rails_3/public/500.html | 25 + spec/dummy_rails_3/public/favicon.ico | 0 spec/{dummy => dummy_rails_3}/script/rails | 0 .../13fe41fee1fe35b49d145bcc06610705 | Bin 0 -> 921 bytes .../2f5173deea6c795b8fdde723bb4b63af | Bin 0 -> 1004 bytes .../357970feca3ac29060c1e3861e2c0953 | Bin 0 -> 921 bytes .../cffd775d018f68ce5dba1ee0d951a994 | Bin 0 -> 1004 bytes .../d771ace226fc8215a3572e0aa35bb0d6 | Bin 0 -> 1291 bytes .../f7cbd26ba1d28d48de824f0e94586655 | Bin 0 -> 1372 bytes spec/lib/obfuscate_id_spec.rb | 15 +- spec/models/post_spec.rb | 4 +- spec/spec_helper.rb | 1 - 115 files changed, 3578 insertions(+), 476 deletions(-) create mode 100644 spec/dummy/.gitignore create mode 100644 spec/dummy/Gemfile create mode 100644 spec/dummy/Gemfile.lock rename spec/dummy/app/{mailers/.gitkeep => assets/images/.keep} (100%) rename spec/dummy/app/{models/.gitkeep => controllers/concerns/.keep} (100%) rename spec/dummy/{lib/assets/.gitkeep => app/mailers/.keep} (100%) rename spec/dummy/{log/.gitkeep => app/models/.keep} (100%) create mode 100644 spec/dummy/app/models/concerns/.keep create mode 100755 spec/dummy/bin/bundle create mode 100755 spec/dummy/bin/rails create mode 100755 spec/dummy/bin/rake create mode 100755 spec/dummy/bin/setup create mode 100755 spec/dummy/bin/spring create mode 100644 spec/dummy/config/initializers/assets.rb create mode 100644 spec/dummy/config/initializers/cookies_serializer.rb create mode 100644 spec/dummy/config/initializers/filter_parameter_logging.rb create mode 100644 spec/dummy/config/secrets.yml create mode 100644 spec/dummy/db/seeds.rb create mode 100644 spec/dummy/lib/assets/.keep create mode 100644 spec/dummy/lib/tasks/.keep create mode 100644 spec/dummy/log/.keep create mode 100644 spec/dummy/public/robots.txt create mode 100644 spec/dummy/test/controllers/.keep create mode 100644 spec/dummy/test/fixtures/.keep create mode 100644 spec/dummy/test/helpers/.keep create mode 100644 spec/dummy/test/integration/.keep create mode 100644 spec/dummy/test/mailers/.keep create mode 100644 spec/dummy/test/models/.keep create mode 100644 spec/dummy/test/test_helper.rb create mode 100644 spec/dummy/vendor/assets/javascripts/.keep create mode 100644 spec/dummy/vendor/assets/stylesheets/.keep rename spec/{dummy => dummy_rails_3}/.rspec (100%) create mode 100644 spec/dummy_rails_3/README.rdoc create mode 100644 spec/dummy_rails_3/Rakefile create mode 100644 spec/dummy_rails_3/app/assets/javascripts/application.js create mode 100644 spec/dummy_rails_3/app/assets/stylesheets/application.css create mode 100644 spec/dummy_rails_3/app/controllers/application_controller.rb create mode 100644 spec/dummy_rails_3/app/controllers/comments_controller.rb create mode 100644 spec/dummy_rails_3/app/controllers/posts_controller.rb create mode 100644 spec/dummy_rails_3/app/helpers/application_helper.rb rename spec/{dummy => dummy_rails_3}/app/helpers/comments_helper.rb (100%) rename spec/{dummy => dummy_rails_3}/app/helpers/posts_helper.rb (100%) create mode 100644 spec/dummy_rails_3/app/mailers/.gitkeep create mode 100644 spec/dummy_rails_3/app/models/.gitkeep create mode 100644 spec/dummy_rails_3/app/models/comment.rb create mode 100644 spec/dummy_rails_3/app/models/post.rb create mode 100644 spec/dummy_rails_3/app/models/user.rb create mode 100644 spec/dummy_rails_3/app/views/layouts/application.html.erb create mode 100644 spec/dummy_rails_3/app/views/posts/index.html.erb create mode 100644 spec/dummy_rails_3/app/views/posts/new.html.erb create mode 100644 spec/dummy_rails_3/app/views/posts/show.html.erb create mode 100644 spec/dummy_rails_3/config.ru create mode 100644 spec/dummy_rails_3/config/application.rb create mode 100644 spec/dummy_rails_3/config/boot.rb create mode 100644 spec/dummy_rails_3/config/database.yml create mode 100644 spec/dummy_rails_3/config/environment.rb create mode 100644 spec/dummy_rails_3/config/environments/development.rb create mode 100644 spec/dummy_rails_3/config/environments/production.rb create mode 100644 spec/dummy_rails_3/config/environments/test.rb create mode 100644 spec/dummy_rails_3/config/initializers/backtrace_silencers.rb create mode 100644 spec/dummy_rails_3/config/initializers/inflections.rb create mode 100644 spec/dummy_rails_3/config/initializers/mime_types.rb rename spec/{dummy => dummy_rails_3}/config/initializers/secret_token.rb (100%) create mode 100644 spec/dummy_rails_3/config/initializers/session_store.rb create mode 100644 spec/dummy_rails_3/config/initializers/wrap_parameters.rb create mode 100644 spec/dummy_rails_3/config/locales/en.yml create mode 100644 spec/dummy_rails_3/config/routes.rb create mode 100644 spec/dummy_rails_3/db/development.sqlite3 create mode 100644 spec/dummy_rails_3/db/migrate/20120201032713_create_posts.rb create mode 100644 spec/dummy_rails_3/db/migrate/20120201053634_create_comments.rb create mode 100644 spec/dummy_rails_3/db/migrate/20120208222551_create_users.rb create mode 100644 spec/dummy_rails_3/db/schema.rb create mode 100644 spec/dummy_rails_3/db/test.sqlite3 create mode 100644 spec/dummy_rails_3/lib/assets/.gitkeep create mode 100644 spec/dummy_rails_3/log/.gitkeep create mode 100644 spec/dummy_rails_3/log/development.log create mode 100644 spec/dummy_rails_3/log/test.log create mode 100644 spec/dummy_rails_3/public/404.html create mode 100644 spec/dummy_rails_3/public/422.html create mode 100644 spec/dummy_rails_3/public/500.html create mode 100644 spec/dummy_rails_3/public/favicon.ico rename spec/{dummy => dummy_rails_3}/script/rails (100%) create mode 100644 spec/dummy_rails_3/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 create mode 100644 spec/dummy_rails_3/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af create mode 100644 spec/dummy_rails_3/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 create mode 100644 spec/dummy_rails_3/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 create mode 100644 spec/dummy_rails_3/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 create mode 100644 spec/dummy_rails_3/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 diff --git a/spec/dummy/.gitignore b/spec/dummy/.gitignore new file mode 100644 index 0000000..050c9d9 --- /dev/null +++ b/spec/dummy/.gitignore @@ -0,0 +1,17 @@ +# See https://help.github.com/articles/ignoring-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 +/db/*.sqlite3-journal + +# Ignore all logfiles and tempfiles. +/log/* +!/log/.keep +/tmp diff --git a/spec/dummy/Gemfile b/spec/dummy/Gemfile new file mode 100644 index 0000000..b43fd2f --- /dev/null +++ b/spec/dummy/Gemfile @@ -0,0 +1,45 @@ +source 'https://rubygems.org' + + +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' +gem 'rails', '4.2.0' +# Use sqlite3 as the database for Active Record +gem 'sqlite3' +# Use SCSS for stylesheets +gem 'sass-rails', '~> 5.0' +# Use Uglifier as compressor for JavaScript assets +gem 'uglifier', '>= 1.3.0' +# Use CoffeeScript for .coffee assets and views +gem 'coffee-rails', '~> 4.1.0' +# See https://github.com/sstephenson/execjs#readme for more supported runtimes +# gem 'therubyracer', platforms: :ruby + +# Use jquery as the JavaScript library +gem 'jquery-rails' +# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks +gem 'turbolinks' +# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder +gem 'jbuilder', '~> 2.0' +# bundle exec rake doc:rails generates the API under doc/api. +gem 'sdoc', '~> 0.4.0', group: :doc + +# Use ActiveModel has_secure_password +# gem 'bcrypt', '~> 3.1.7' + +# Use Unicorn as the app server +# gem 'unicorn' + +# Use Capistrano for deployment +# gem 'capistrano-rails', group: :development + +group :development, :test do + # Call 'byebug' anywhere in the code to stop execution and get a debugger console + gem 'byebug' + + # Access an IRB console on exception pages or by using <%= console %> in views + gem 'web-console', '~> 2.0' + + # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring + gem 'spring' +end + diff --git a/spec/dummy/Gemfile.lock b/spec/dummy/Gemfile.lock new file mode 100644 index 0000000..8d6562f --- /dev/null +++ b/spec/dummy/Gemfile.lock @@ -0,0 +1,164 @@ +GEM + remote: https://rubygems.org/ + specs: + actionmailer (4.2.0) + actionpack (= 4.2.0) + actionview (= 4.2.0) + activejob (= 4.2.0) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 1.0, >= 1.0.5) + actionpack (4.2.0) + actionview (= 4.2.0) + activesupport (= 4.2.0) + rack (~> 1.6.0) + rack-test (~> 0.6.2) + rails-dom-testing (~> 1.0, >= 1.0.5) + rails-html-sanitizer (~> 1.0, >= 1.0.1) + actionview (4.2.0) + activesupport (= 4.2.0) + builder (~> 3.1) + erubis (~> 2.7.0) + rails-dom-testing (~> 1.0, >= 1.0.5) + rails-html-sanitizer (~> 1.0, >= 1.0.1) + activejob (4.2.0) + activesupport (= 4.2.0) + globalid (>= 0.3.0) + activemodel (4.2.0) + activesupport (= 4.2.0) + builder (~> 3.1) + activerecord (4.2.0) + activemodel (= 4.2.0) + activesupport (= 4.2.0) + arel (~> 6.0) + activesupport (4.2.0) + i18n (~> 0.7) + json (~> 1.7, >= 1.7.7) + minitest (~> 5.1) + thread_safe (~> 0.3, >= 0.3.4) + tzinfo (~> 1.1) + arel (6.0.0) + binding_of_caller (0.7.2) + debug_inspector (>= 0.0.1) + builder (3.2.2) + byebug (3.5.1) + columnize (~> 0.8) + debugger-linecache (~> 1.2) + slop (~> 3.6) + coffee-rails (4.1.0) + coffee-script (>= 2.2.0) + railties (>= 4.0.0, < 5.0) + coffee-script (2.3.0) + coffee-script-source + execjs + coffee-script-source (1.9.0) + columnize (0.9.0) + debug_inspector (0.0.2) + debugger-linecache (1.2.0) + erubis (2.7.0) + execjs (2.3.0) + globalid (0.3.2) + activesupport (>= 4.1.0) + hike (1.2.3) + i18n (0.7.0) + jbuilder (2.2.6) + activesupport (>= 3.0.0, < 5) + multi_json (~> 1.2) + jquery-rails (4.0.3) + rails-dom-testing (~> 1.0) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + json (1.8.2) + loofah (2.0.1) + nokogiri (>= 1.5.9) + mail (2.6.3) + mime-types (>= 1.16, < 3) + mime-types (2.4.3) + mini_portile (0.6.2) + minitest (5.5.1) + multi_json (1.10.1) + nokogiri (1.6.6.2) + mini_portile (~> 0.6.0) + rack (1.6.0) + rack-test (0.6.3) + rack (>= 1.0) + rails (4.2.0) + actionmailer (= 4.2.0) + actionpack (= 4.2.0) + actionview (= 4.2.0) + activejob (= 4.2.0) + activemodel (= 4.2.0) + activerecord (= 4.2.0) + activesupport (= 4.2.0) + bundler (>= 1.3.0, < 2.0) + railties (= 4.2.0) + sprockets-rails + rails-deprecated_sanitizer (1.0.3) + activesupport (>= 4.2.0.alpha) + rails-dom-testing (1.0.5) + activesupport (>= 4.2.0.beta, < 5.0) + nokogiri (~> 1.6.0) + rails-deprecated_sanitizer (>= 1.0.1) + rails-html-sanitizer (1.0.1) + loofah (~> 2.0) + railties (4.2.0) + actionpack (= 4.2.0) + activesupport (= 4.2.0) + rake (>= 0.8.7) + thor (>= 0.18.1, < 2.0) + rake (10.4.2) + rdoc (4.2.0) + json (~> 1.4) + sass (3.4.11) + sass-rails (5.0.1) + railties (>= 4.0.0, < 5.0) + sass (~> 3.1) + sprockets (>= 2.8, < 4.0) + sprockets-rails (>= 2.0, < 4.0) + tilt (~> 1.1) + sdoc (0.4.1) + json (~> 1.7, >= 1.7.7) + rdoc (~> 4.0) + slop (3.6.0) + spring (1.3.0) + sprockets (2.12.3) + hike (~> 1.2) + multi_json (~> 1.0) + rack (~> 1.0) + tilt (~> 1.1, != 1.3.0) + sprockets-rails (2.2.4) + actionpack (>= 3.0) + activesupport (>= 3.0) + sprockets (>= 2.8, < 4.0) + sqlite3 (1.3.10) + thor (0.19.1) + thread_safe (0.3.4) + tilt (1.4.1) + turbolinks (2.5.3) + coffee-rails + tzinfo (1.2.2) + thread_safe (~> 0.1) + uglifier (2.7.0) + execjs (>= 0.3.0) + json (>= 1.8.0) + web-console (2.0.0) + activemodel (~> 4.0) + binding_of_caller (>= 0.7.2) + railties (~> 4.0) + sprockets-rails (>= 2.0, < 4.0) + +PLATFORMS + ruby + +DEPENDENCIES + byebug + coffee-rails (~> 4.1.0) + jbuilder (~> 2.0) + jquery-rails + rails (= 4.2.0) + sass-rails (~> 5.0) + sdoc (~> 0.4.0) + spring + sqlite3 + turbolinks + uglifier (>= 1.3.0) + web-console (~> 2.0) diff --git a/spec/dummy/README.rdoc b/spec/dummy/README.rdoc index 7c36f23..dd4e97e 100644 --- a/spec/dummy/README.rdoc +++ b/spec/dummy/README.rdoc @@ -1,261 +1,28 @@ -== Welcome to Rails +== README -Rails is a web-application framework that includes everything needed to create -database-backed web applications according to the Model-View-Control pattern. +This README would normally document whatever steps are necessary to get the +application up and running. -This pattern splits the view (also called the presentation) into "dumb" -templates that are primarily responsible for inserting pre-built data in between -HTML tags. The model contains the "smart" domain objects (such as Account, -Product, Person, Post) that holds all the business logic and knows how to -persist themselves to a database. The controller handles the incoming requests -(such as Save New Account, Update Product, Show Post) by manipulating the model -and directing data to the view. +Things you may want to cover: -In Rails, the model is handled by what's called an object-relational mapping -layer entitled Active Record. This layer allows you to present the data from -database rows as objects and embellish these data objects with business logic -methods. You can read more about Active Record in -link:files/vendor/rails/activerecord/README.html. +* Ruby version -The controller and view are handled by the Action Pack, which handles both -layers by its two parts: Action View and Action Controller. These two layers -are bundled in a single package due to their heavy interdependence. This is -unlike the relationship between the Active Record and Action Pack that is much -more separate. Each of these packages can be used independently outside of -Rails. You can read more about Action Pack in -link:files/vendor/rails/actionpack/README.html. +* System dependencies +* Configuration -== Getting Started +* Database creation -1. At the command prompt, create a new Rails application: - rails new myapp (where myapp is the application name) +* Database initialization -2. Change directory to myapp and start the web server: - cd myapp; rails server (run with --help for options) +* How to run the test suite -3. Go to http://localhost:3000/ and you'll see: - "Welcome aboard: You're riding Ruby on Rails!" +* Services (job queues, cache servers, search engines, etc.) -4. Follow the guidelines to start developing your application. You can find -the following resources handy: +* Deployment instructions -* The Getting Started Guide: http://guides.rubyonrails.org/getting_started.html -* Ruby on Rails Tutorial Book: http://www.railstutorial.org/ +* ... -== Debugging Rails - -Sometimes your application goes wrong. Fortunately there are a lot of tools that -will help you debug it and get it back on the rails. - -First area to check is the application log files. Have "tail -f" commands -running on the server.log and development.log. Rails will automatically display -debugging and runtime information to these files. Debugging info will also be -shown in the browser on requests from 127.0.0.1. - -You can also log your own messages directly into the log file from your code -using the Ruby logger class from inside your controllers. Example: - - class WeblogController < ActionController::Base - def destroy - @weblog = Weblog.find(params[:id]) - @weblog.destroy - logger.info("#{Time.now} Destroyed Weblog ID ##{@weblog.id}!") - end - end - -The result will be a message in your log file along the lines of: - - Mon Oct 08 14:22:29 +1000 2007 Destroyed Weblog ID #1! - -More information on how to use the logger is at http://www.ruby-doc.org/core/ - -Also, Ruby documentation can be found at http://www.ruby-lang.org/. There are -several books available online as well: - -* Programming Ruby: http://www.ruby-doc.org/docs/ProgrammingRuby/ (Pickaxe) -* Learn to Program: http://pine.fm/LearnToProgram/ (a beginners guide) - -These two books will bring you up to speed on the Ruby language and also on -programming in general. - - -== Debugger - -Debugger support is available through the debugger command when you start your -Mongrel or WEBrick server with --debugger. This means that you can break out of -execution at any point in the code, investigate and change the model, and then, -resume execution! You need to install ruby-debug to run the server in debugging -mode. With gems, use sudo gem install ruby-debug. Example: - - class WeblogController < ActionController::Base - def index - @posts = Post.all - debugger - end - end - -So the controller will accept the action, run the first line, then present you -with a IRB prompt in the server window. Here you can do things like: - - >> @posts.inspect - => "[#nil, "body"=>nil, "id"=>"1"}>, - #"Rails", "body"=>"Only ten..", "id"=>"2"}>]" - >> @posts.first.title = "hello from a debugger" - => "hello from a debugger" - -...and even better, you can examine how your runtime objects actually work: - - >> f = @posts.first - => #nil, "body"=>nil, "id"=>"1"}> - >> f. - Display all 152 possibilities? (y or n) - -Finally, when you're ready to resume execution, you can enter "cont". - - -== Console - -The console is a Ruby shell, which allows you to interact with your -application's domain model. Here you'll have all parts of the application -configured, just like it is when the application is running. You can inspect -domain models, change values, and save to the database. Starting the script -without arguments will launch it in the development environment. - -To start the console, run rails console from the application -directory. - -Options: - -* Passing the -s, --sandbox argument will rollback any modifications - made to the database. -* Passing an environment name as an argument will load the corresponding - environment. Example: rails console production. - -To reload your controllers and models after launching the console run -reload! - -More information about irb can be found at: -link:http://www.rubycentral.org/pickaxe/irb.html - - -== dbconsole - -You can go to the command line of your database directly through rails -dbconsole. You would be connected to the database with the credentials -defined in database.yml. Starting the script without arguments will connect you -to the development database. Passing an argument will connect you to a different -database, like rails dbconsole production. Currently works for MySQL, -PostgreSQL and SQLite 3. - -== Description of Contents - -The default directory structure of a generated Ruby on Rails application: - - |-- app - | |-- assets - | |-- images - | |-- javascripts - | `-- stylesheets - | |-- controllers - | |-- helpers - | |-- mailers - | |-- models - | `-- views - | `-- layouts - |-- config - | |-- environments - | |-- initializers - | `-- locales - |-- db - |-- doc - |-- lib - | `-- tasks - |-- log - |-- public - |-- script - |-- test - | |-- fixtures - | |-- functional - | |-- integration - | |-- performance - | `-- unit - |-- tmp - | |-- cache - | |-- pids - | |-- sessions - | `-- sockets - `-- vendor - |-- assets - `-- stylesheets - `-- plugins - -app - Holds all the code that's specific to this particular application. - -app/assets - Contains subdirectories for images, stylesheets, and JavaScript files. - -app/controllers - Holds controllers that should be named like weblogs_controller.rb for - automated URL mapping. All controllers should descend from - ApplicationController which itself descends from ActionController::Base. - -app/models - Holds models that should be named like post.rb. Models descend from - ActiveRecord::Base by default. - -app/views - Holds the template files for the view that should be named like - weblogs/index.html.erb for the WeblogsController#index action. All views use - eRuby syntax by default. - -app/views/layouts - Holds the template files for layouts to be used with views. This models the - common header/footer method of wrapping views. In your views, define a layout - using the layout :default and create a file named default.html.erb. - Inside default.html.erb, call <% yield %> to render the view using this - layout. - -app/helpers - Holds view helpers that should be named like weblogs_helper.rb. These are - generated for you automatically when using generators for controllers. - Helpers can be used to wrap functionality for your views into methods. - -config - Configuration files for the Rails environment, the routing map, the database, - and other dependencies. - -db - Contains the database schema in schema.rb. db/migrate contains all the - sequence of Migrations for your schema. - -doc - This directory is where your application documentation will be stored when - generated using rake doc:app - -lib - Application specific libraries. Basically, any kind of custom code that - doesn't belong under controllers, models, or helpers. This directory is in - the load path. - -public - The directory available for the web server. Also contains the dispatchers and the - default HTML files. This should be set as the DOCUMENT_ROOT of your web - server. - -script - Helper scripts for automation and generation. - -test - Unit and functional tests along with fixtures. When using the rails generate - command, template test files will be generated for you and placed in this - directory. - -vendor - External libraries that the application depends on. Also includes the plugins - subdirectory. If the app has frozen rails, those gems also go here, under - vendor/rails/. This directory is in the load path. +Please feel free to use a different markup language if you do not plan to run +rake doc:app. diff --git a/spec/dummy/Rakefile b/spec/dummy/Rakefile index 3645852..ba6b733 100644 --- a/spec/dummy/Rakefile +++ b/spec/dummy/Rakefile @@ -1,7 +1,6 @@ -#!/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__) -Dummy::Application.load_tasks +Rails.application.load_tasks diff --git a/spec/dummy/app/mailers/.gitkeep b/spec/dummy/app/assets/images/.keep similarity index 100% rename from spec/dummy/app/mailers/.gitkeep rename to spec/dummy/app/assets/images/.keep diff --git a/spec/dummy/app/assets/javascripts/application.js b/spec/dummy/app/assets/javascripts/application.js index 15ebed9..c28e5ba 100644 --- a/spec/dummy/app/assets/javascripts/application.js +++ b/spec/dummy/app/assets/javascripts/application.js @@ -2,12 +2,12 @@ // 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. +// or any plugin's vendor/assets/javascripts directory 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. +// 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. +// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details +// about supported directives. // //= require_tree . diff --git a/spec/dummy/app/assets/stylesheets/application.css b/spec/dummy/app/assets/stylesheets/application.css index 3b5cc66..f9cd5b3 100644 --- a/spec/dummy/app/assets/stylesheets/application.css +++ b/spec/dummy/app/assets/stylesheets/application.css @@ -3,11 +3,13 @@ * listed below. * * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, - * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path. + * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path. * - * 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. + * You're free to add application-wide styles to this file and they'll appear at the bottom of the + * compiled file so the styles you add here take precedence over styles defined in any styles + * defined in the other CSS/SCSS files in this directory. It is generally better to create a new + * file per style scope. * - *= require_self *= require_tree . -*/ + *= require_self + */ diff --git a/spec/dummy/app/controllers/application_controller.rb b/spec/dummy/app/controllers/application_controller.rb index e8065d9..d83690e 100644 --- a/spec/dummy/app/controllers/application_controller.rb +++ b/spec/dummy/app/controllers/application_controller.rb @@ -1,3 +1,5 @@ class ApplicationController < ActionController::Base - protect_from_forgery + # Prevent CSRF attacks by raising an exception. + # For APIs, you may want to use :null_session instead. + protect_from_forgery with: :exception end diff --git a/spec/dummy/app/models/.gitkeep b/spec/dummy/app/controllers/concerns/.keep similarity index 100% rename from spec/dummy/app/models/.gitkeep rename to spec/dummy/app/controllers/concerns/.keep diff --git a/spec/dummy/lib/assets/.gitkeep b/spec/dummy/app/mailers/.keep similarity index 100% rename from spec/dummy/lib/assets/.gitkeep rename to spec/dummy/app/mailers/.keep diff --git a/spec/dummy/log/.gitkeep b/spec/dummy/app/models/.keep similarity index 100% rename from spec/dummy/log/.gitkeep rename to spec/dummy/app/models/.keep diff --git a/spec/dummy/app/models/concerns/.keep b/spec/dummy/app/models/concerns/.keep new file mode 100644 index 0000000..e69de29 diff --git a/spec/dummy/app/views/layouts/application.html.erb b/spec/dummy/app/views/layouts/application.html.erb index 4cab268..593a778 100644 --- a/spec/dummy/app/views/layouts/application.html.erb +++ b/spec/dummy/app/views/layouts/application.html.erb @@ -2,8 +2,8 @@ Dummy - <%= stylesheet_link_tag "application", :media => "all" %> - <%= javascript_include_tag "application" %> + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> + <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> <%= csrf_meta_tags %> diff --git a/spec/dummy/bin/bundle b/spec/dummy/bin/bundle new file mode 100755 index 0000000..66e9889 --- /dev/null +++ b/spec/dummy/bin/bundle @@ -0,0 +1,3 @@ +#!/usr/bin/env ruby +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) +load Gem.bin_path('bundler', 'bundle') diff --git a/spec/dummy/bin/rails b/spec/dummy/bin/rails new file mode 100755 index 0000000..4d608ed --- /dev/null +++ b/spec/dummy/bin/rails @@ -0,0 +1,8 @@ +#!/usr/bin/env ruby +begin + load File.expand_path("../spring", __FILE__) +rescue LoadError +end +APP_PATH = File.expand_path('../../config/application', __FILE__) +require_relative '../config/boot' +require 'rails/commands' diff --git a/spec/dummy/bin/rake b/spec/dummy/bin/rake new file mode 100755 index 0000000..8017a02 --- /dev/null +++ b/spec/dummy/bin/rake @@ -0,0 +1,8 @@ +#!/usr/bin/env ruby +begin + load File.expand_path("../spring", __FILE__) +rescue LoadError +end +require_relative '../config/boot' +require 'rake' +Rake.application.run diff --git a/spec/dummy/bin/setup b/spec/dummy/bin/setup new file mode 100755 index 0000000..acdb2c1 --- /dev/null +++ b/spec/dummy/bin/setup @@ -0,0 +1,29 @@ +#!/usr/bin/env ruby +require 'pathname' + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +Dir.chdir APP_ROOT do + # This script is a starting point to setup your application. + # Add necessary setup steps to this file: + + puts "== Installing dependencies ==" + system "gem install bundler --conservative" + system "bundle check || bundle install" + + # puts "\n== Copying sample files ==" + # unless File.exist?("config/database.yml") + # system "cp config/database.yml.sample config/database.yml" + # end + + puts "\n== Preparing database ==" + system "bin/rake db:setup" + + puts "\n== Removing old logs and tempfiles ==" + system "rm -f log/*" + system "rm -rf tmp/cache" + + puts "\n== Restarting application server ==" + system "touch tmp/restart.txt" +end diff --git a/spec/dummy/bin/spring b/spec/dummy/bin/spring new file mode 100755 index 0000000..de6070b --- /dev/null +++ b/spec/dummy/bin/spring @@ -0,0 +1,18 @@ +#!/usr/bin/env ruby + +# This file loads spring without using Bundler, in order to be fast +# It gets overwritten when you run the `spring binstub` command + +unless defined?(Spring) + require "rubygems" + require "bundler" + + if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ (?: )*spring \((.*?)\)$.*?^$/m) + ENV["GEM_PATH"] = ([Bundler.bundle_path.to_s] + Gem.path).join(File::PATH_SEPARATOR) + ENV["GEM_HOME"] = nil + Gem.paths = ENV + + gem "spring", match[1] + require "spring/binstub" + end +end diff --git a/spec/dummy/config.ru b/spec/dummy/config.ru index 1989ed8..bd83b25 100644 --- a/spec/dummy/config.ru +++ b/spec/dummy/config.ru @@ -1,4 +1,4 @@ # This file is used by Rack-based servers to start the application. -require ::File.expand_path('../config/environment', __FILE__) -run Dummy::Application +require ::File.expand_path('../config/environment', __FILE__) +run Rails.application diff --git a/spec/dummy/config/application.rb b/spec/dummy/config/application.rb index 6c51a3e..c1e5d67 100644 --- a/spec/dummy/config/application.rb +++ b/spec/dummy/config/application.rb @@ -1,15 +1,11 @@ require File.expand_path('../boot', __FILE__) -# Pick the frameworks you want: -require "active_record/railtie" -require "action_controller/railtie" -require "action_mailer/railtie" -require "active_resource/railtie" -require "sprockets/railtie" -# require "rails/test_unit/railtie" +require 'rails/all' -Bundler.require -require "obfuscate_id" +# Require the gems listed in Gemfile, including any gems +# you've limited to :test, :development, or :production. +Bundler.require(*Rails.groups) +require File.expand_path("../../../../lib/obfuscate_id", __FILE__) module Dummy class Application < Rails::Application @@ -17,16 +13,6 @@ class Application < Rails::Application # Application configuration should go into files in config/initializers # -- all .rb files in that directory are automatically loaded. - # Custom directories with classes and modules you want to be autoloadable. - # config.autoload_paths += %W(#{config.root}/extras) - - # Only load the plugins named here, in the order given (default is alphabetical). - # :all can be used as a placeholder for all plugins not explicitly named. - # config.plugins = [ :exception_notification, :ssl_requirement, :all ] - - # Activate observers that should always be running. - # config.active_record.observers = :cacher, :garbage_collector, :forum_observer - # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC. # config.time_zone = 'Central Time (US & Canada)' @@ -35,28 +21,7 @@ class Application < Rails::Application # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] # config.i18n.default_locale = :de - # Configure the default encoding used in templates for Ruby 1.9. - config.encoding = "utf-8" - - # Configure sensitive parameters which will be filtered from the log file. - config.filter_parameters += [:password] - - # Use SQL instead of Active Record's schema dumper when creating the database. - # This is necessary if your schema can't be completely dumped by the schema dumper, - # like if you have constraints or database-specific column types - # config.active_record.schema_format = :sql - - # Enforce whitelist mode for mass assignment. - # This will create an empty whitelist of attributes available for mass-assignment for all models - # in your app. As such, your models will need to explicitly whitelist or blacklist accessible - # parameters by using an attr_accessible or attr_protected declaration. - # config.active_record.whitelist_attributes = true - - # Enable the asset pipeline - config.assets.enabled = true - - # Version of your assets, change this if you want to expire all your assets - config.assets.version = '1.0' + # Do not swallow errors in after_commit/after_rollback callbacks. + config.active_record.raise_in_transactional_callbacks = true end end - diff --git a/spec/dummy/config/boot.rb b/spec/dummy/config/boot.rb index eba0681..6b750f0 100644 --- a/spec/dummy/config/boot.rb +++ b/spec/dummy/config/boot.rb @@ -1,10 +1,3 @@ -require 'rubygems' -gemfile = File.expand_path('../../../../Gemfile', __FILE__) +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) -if File.exist?(gemfile) - ENV['BUNDLE_GEMFILE'] = gemfile - require 'bundler' - Bundler.setup -end - -$:.unshift File.expand_path('../../../../lib', __FILE__) \ No newline at end of file +require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/spec/dummy/config/database.yml b/spec/dummy/config/database.yml index 51a4dd4..1c1a37c 100644 --- a/spec/dummy/config/database.yml +++ b/spec/dummy/config/database.yml @@ -3,23 +3,23 @@ # # Ensure the SQLite 3 gem is defined in your Gemfile # gem 'sqlite3' -development: +# +default: &default adapter: sqlite3 - database: db/development.sqlite3 pool: 5 timeout: 5000 +development: + <<: *default + database: db/development.sqlite3 + # Warning: The database defined as "test" will be erased and # re-generated from your development database when you run "rake". # Do not set this db to the same as development or production. test: - adapter: sqlite3 + <<: *default database: db/test.sqlite3 - pool: 5 - timeout: 5000 production: - adapter: sqlite3 + <<: *default database: db/production.sqlite3 - pool: 5 - timeout: 5000 diff --git a/spec/dummy/config/environment.rb b/spec/dummy/config/environment.rb index 3da5eb9..ee8d90d 100644 --- a/spec/dummy/config/environment.rb +++ b/spec/dummy/config/environment.rb @@ -1,5 +1,5 @@ -# Load the rails application +# Load the Rails application. require File.expand_path('../application', __FILE__) -# Initialize the rails application -Dummy::Application.initialize! +# Initialize the Rails application. +Rails.application.initialize! diff --git a/spec/dummy/config/environments/development.rb b/spec/dummy/config/environments/development.rb index 50105b3..b55e214 100644 --- a/spec/dummy/config/environments/development.rb +++ b/spec/dummy/config/environments/development.rb @@ -1,37 +1,41 @@ -Dummy::Application.configure do - # Settings specified here will take precedence over those in config/application.rb +Rails.application.configure do + # Settings specified here will take precedence over those in config/application.rb. # In the development environment your application's code is reloaded on # every request. This slows down response time but is perfect for development # since you don't have to restart the web server when you make code changes. config.cache_classes = false - # Log error messages when you accidentally call methods on nil. - config.whiny_nils = true + # Do not eager load code on boot. + config.eager_load = false - # Show full error reports and disable caching + # Show full error reports and disable caching. config.consider_all_requests_local = true config.action_controller.perform_caching = false - # Don't care if the mailer can't send + # Don't care if the mailer can't send. config.action_mailer.raise_delivery_errors = false - # Print deprecation notices to the Rails logger + # Print deprecation notices to the Rails logger. config.active_support.deprecation = :log - # Only use best-standards-support built into browsers - config.action_dispatch.best_standards_support = :builtin + # Raise an error on page load if there are pending migrations. + config.active_record.migration_error = :page_load - # Raise exception on mass assignment protection for Active Record models - # config.active_record.mass_assignment_sanitizer = :strict + # Debug mode disables concatenation and preprocessing of assets. + # This option may cause significant delays in view rendering with a large + # number of complex assets. + config.assets.debug = true - # Log the query plan for queries taking more than this (works - # with SQLite, MySQL, and PostgreSQL) - # config.active_record.auto_explain_threshold_in_seconds = 0.5 + # Asset digests allow you to set far-future HTTP expiration dates on all assets, + # yet still be able to expire them through the digest params. + config.assets.digest = true - # Do not compress assets - config.assets.compress = false + # Adds additional error checking when serving assets at runtime. + # Checks for improperly declared sprockets dependencies. + # Raises helpful error messages. + config.assets.raise_runtime_errors = true - # Expands the lines which load the assets - config.assets.debug = true + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true end diff --git a/spec/dummy/config/environments/production.rb b/spec/dummy/config/environments/production.rb index 56e3066..5c1b32e 100644 --- a/spec/dummy/config/environments/production.rb +++ b/spec/dummy/config/environments/production.rb @@ -1,67 +1,79 @@ -Dummy::Application.configure do - # Settings specified here will take precedence over those in config/application.rb +Rails.application.configure do + # Settings specified here will take precedence over those in config/application.rb. - # Code is not reloaded between requests + # Code is not reloaded between requests. config.cache_classes = true - # Full error reports are disabled and caching is turned on + # Eager load code on boot. This eager loads most of Rails and + # your application in memory, allowing both threaded web servers + # and those relying on copy on write to perform better. + # Rake tasks automatically ignore this option for performance. + config.eager_load = true + + # Full error reports are disabled and caching is turned on. config.consider_all_requests_local = false config.action_controller.perform_caching = true - # Disable Rails's static asset server (Apache or nginx will already do this) - config.serve_static_assets = false + # Enable Rack::Cache to put a simple HTTP cache in front of your application + # Add `rack-cache` to your Gemfile before enabling this. + # For large-scale production use, consider using a caching reverse proxy like + # NGINX, varnish or squid. + # config.action_dispatch.rack_cache = true + + # Disable serving static files from the `/public` folder by default since + # Apache or NGINX already handles this. + config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - # Compress JavaScripts and CSS - config.assets.compress = true + # Compress JavaScripts and CSS. + config.assets.js_compressor = :uglifier + # config.assets.css_compressor = :sass - # Don't fallback to assets pipeline if a precompiled asset is missed + # Do not fallback to assets pipeline if a precompiled asset is missed. config.assets.compile = false - # Generate digests for assets URLs + # Asset digests allow you to set far-future HTTP expiration dates on all assets, + # yet still be able to expire them through the digest params. config.assets.digest = true - # Defaults to Rails.root.join("public/assets") - # config.assets.manifest = YOUR_PATH + # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - # Specifies the header that your server uses for sending files - # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache - # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx + # Specifies the header that your server uses for sending files. + # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache + # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. # config.force_ssl = true - # See everything in the log (default is :info) - # config.log_level = :debug + # Use the lowest log level to ensure availability of diagnostic information + # when problems arise. + config.log_level = :debug - # Prepend all log lines with the following tags + # Prepend all log lines with the following tags. # config.log_tags = [ :subdomain, :uuid ] - # Use a different logger for distributed setups + # Use a different logger for distributed setups. # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new) - # Use a different cache store in production + # Use a different cache store in production. # config.cache_store = :mem_cache_store - # Enable serving of images, stylesheets, and JavaScripts from an asset server - # config.action_controller.asset_host = "http://assets.example.com" - - # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added) - # config.assets.precompile += %w( search.js ) + # Enable serving of images, stylesheets, and JavaScripts from an asset server. + # config.action_controller.asset_host = 'http://assets.example.com' - # Disable delivery errors, bad email addresses will be ignored + # Ignore bad email addresses and do not raise email delivery errors. + # Set this to true and configure the email server for immediate delivery to raise delivery errors. # config.action_mailer.raise_delivery_errors = false - # Enable threaded mode - # config.threadsafe! - # Enable locale fallbacks for I18n (makes lookups for any locale fall back to - # the I18n.default_locale when a translation can not be found) + # the I18n.default_locale when a translation cannot be found). config.i18n.fallbacks = true - # Send deprecation notices to registered listeners + # Send deprecation notices to registered listeners. config.active_support.deprecation = :notify - # Log the query plan for queries taking more than this (works - # with SQLite, MySQL, and PostgreSQL) - # config.active_record.auto_explain_threshold_in_seconds = 0.5 + # Use default logging formatter so that PID and timestamp are not suppressed. + config.log_formatter = ::Logger::Formatter.new + + # Do not dump schema after migrations. + config.active_record.dump_schema_after_migration = false end diff --git a/spec/dummy/config/environments/test.rb b/spec/dummy/config/environments/test.rb index 6feb3d2..1c19f08 100644 --- a/spec/dummy/config/environments/test.rb +++ b/spec/dummy/config/environments/test.rb @@ -1,5 +1,5 @@ -Dummy::Application.configure do - # Settings specified here will take precedence over those in config/application.rb +Rails.application.configure do + # Settings specified here will take precedence over those in config/application.rb. # The test environment is used exclusively to run your application's # test suite. You never need to work with it otherwise. Remember that @@ -7,31 +7,36 @@ # and recreated between test runs. Don't rely on the data there! config.cache_classes = true - # Configure static asset server for tests with Cache-Control for performance - config.serve_static_assets = true - config.static_cache_control = "public, max-age=3600" + # Do not eager load code on boot. This avoids loading your whole application + # just for the purpose of running a single test. If you are using a tool that + # preloads Rails for running tests, you may have to set it to true. + config.eager_load = false - # Log error messages when you accidentally call methods on nil - config.whiny_nils = true + # Configure static file server for tests with Cache-Control for performance. + config.serve_static_files = true + config.static_cache_control = 'public, max-age=3600' - # Show full error reports and disable caching + # Show full error reports and disable caching. config.consider_all_requests_local = true config.action_controller.perform_caching = false - # Raise exceptions instead of rendering exception templates + # Raise exceptions instead of rendering exception templates. config.action_dispatch.show_exceptions = false - # Disable request forgery protection in test environment - config.action_controller.allow_forgery_protection = false + # Disable request forgery protection in test environment. + config.action_controller.allow_forgery_protection = false # Tell Action Mailer not to deliver emails to the real world. # The :test delivery method accumulates sent emails in the # ActionMailer::Base.deliveries array. config.action_mailer.delivery_method = :test - # Raise exception on mass assignment protection for Active Record models - # config.active_record.mass_assignment_sanitizer = :strict + # Randomize the order test cases are executed. + config.active_support.test_order = :random - # Print deprecation notices to the stderr + # Print deprecation notices to the stderr. config.active_support.deprecation = :stderr + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true end diff --git a/spec/dummy/config/initializers/assets.rb b/spec/dummy/config/initializers/assets.rb new file mode 100644 index 0000000..01ef3e6 --- /dev/null +++ b/spec/dummy/config/initializers/assets.rb @@ -0,0 +1,11 @@ +# Be sure to restart your server when you modify this file. + +# Version of your assets, change this if you want to expire all your assets. +Rails.application.config.assets.version = '1.0' + +# Add additional assets to the asset load path +# Rails.application.config.assets.paths << Emoji.images_path + +# Precompile additional assets. +# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. +# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/spec/dummy/config/initializers/cookies_serializer.rb b/spec/dummy/config/initializers/cookies_serializer.rb new file mode 100644 index 0000000..7f70458 --- /dev/null +++ b/spec/dummy/config/initializers/cookies_serializer.rb @@ -0,0 +1,3 @@ +# Be sure to restart your server when you modify this file. + +Rails.application.config.action_dispatch.cookies_serializer = :json diff --git a/spec/dummy/config/initializers/filter_parameter_logging.rb b/spec/dummy/config/initializers/filter_parameter_logging.rb new file mode 100644 index 0000000..4a994e1 --- /dev/null +++ b/spec/dummy/config/initializers/filter_parameter_logging.rb @@ -0,0 +1,4 @@ +# Be sure to restart your server when you modify this file. + +# Configure sensitive parameters which will be filtered from the log file. +Rails.application.config.filter_parameters += [:password] diff --git a/spec/dummy/config/initializers/inflections.rb b/spec/dummy/config/initializers/inflections.rb index 5d8d9be..ac033bf 100644 --- a/spec/dummy/config/initializers/inflections.rb +++ b/spec/dummy/config/initializers/inflections.rb @@ -1,15 +1,16 @@ # Be sure to restart your server when you modify this file. -# Add new inflection rules using the following format -# (all these examples are active by default): -# ActiveSupport::Inflector.inflections do |inflect| +# Add new inflection rules using the following format. Inflections +# are locale specific, and you may define rules for as many different +# locales as you wish. All of these examples are active by default: +# ActiveSupport::Inflector.inflections(:en) do |inflect| # inflect.plural /^(ox)$/i, '\1en' # inflect.singular /^(ox)en/i, '\1' # inflect.irregular 'person', 'people' # inflect.uncountable %w( fish sheep ) # end -# + # These inflection rules are supported but not enabled by default: -# ActiveSupport::Inflector.inflections do |inflect| +# ActiveSupport::Inflector.inflections(:en) do |inflect| # inflect.acronym 'RESTful' # end diff --git a/spec/dummy/config/initializers/mime_types.rb b/spec/dummy/config/initializers/mime_types.rb index 72aca7e..dc18996 100644 --- a/spec/dummy/config/initializers/mime_types.rb +++ b/spec/dummy/config/initializers/mime_types.rb @@ -2,4 +2,3 @@ # Add new mime types for use in respond_to blocks: # Mime::Type.register "text/richtext", :rtf -# Mime::Type.register_alias "text/html", :iphone diff --git a/spec/dummy/config/initializers/session_store.rb b/spec/dummy/config/initializers/session_store.rb index 952473f..e766b67 100644 --- a/spec/dummy/config/initializers/session_store.rb +++ b/spec/dummy/config/initializers/session_store.rb @@ -1,8 +1,3 @@ # Be sure to restart your server when you modify this file. -Dummy::Application.config.session_store :cookie_store, key: '_dummy_session' - -# Use the database for sessions instead of the cookie-based default, -# which shouldn't be used to store highly confidential information -# (create the session table with "rails generate session_migration") -# Dummy::Application.config.session_store :active_record_store +Rails.application.config.session_store :cookie_store, key: '_dummy_session' diff --git a/spec/dummy/config/initializers/wrap_parameters.rb b/spec/dummy/config/initializers/wrap_parameters.rb index 999df20..33725e9 100644 --- a/spec/dummy/config/initializers/wrap_parameters.rb +++ b/spec/dummy/config/initializers/wrap_parameters.rb @@ -1,14 +1,14 @@ # Be sure to restart your server when you modify this file. -# + # This file contains settings for ActionController::ParamsWrapper which # is enabled by default. # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. ActiveSupport.on_load(:action_controller) do - wrap_parameters format: [:json] + wrap_parameters format: [:json] if respond_to?(:wrap_parameters) end -# Disable root element in JSON by default. -ActiveSupport.on_load(:active_record) do - self.include_root_in_json = false -end +# To enable root element in JSON for ActiveRecord objects. +# ActiveSupport.on_load(:active_record) do +# self.include_root_in_json = true +# end diff --git a/spec/dummy/config/locales/en.yml b/spec/dummy/config/locales/en.yml index 179c14c..0653957 100644 --- a/spec/dummy/config/locales/en.yml +++ b/spec/dummy/config/locales/en.yml @@ -1,5 +1,23 @@ -# Sample localization file for English. Add more files in this directory for other locales. -# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points. +# Files in the config/locales directory are used for internationalization +# and are automatically loaded by Rails. If you want to use locales other +# than English, add the necessary files in this directory. +# +# To use the locales, use `I18n.t`: +# +# I18n.t 'hello' +# +# In views, this is aliased to just `t`: +# +# <%= t('hello') %> +# +# To use a different locale, set it with `I18n.locale`: +# +# I18n.locale = :es +# +# This would use the information in config/locales/es.yml. +# +# To learn more, please read the Rails Internationalization guide +# available at http://guides.rubyonrails.org/i18n.html. en: hello: "Hello world" diff --git a/spec/dummy/config/routes.rb b/spec/dummy/config/routes.rb index 3259030..cacd98d 100644 --- a/spec/dummy/config/routes.rb +++ b/spec/dummy/config/routes.rb @@ -1,5 +1,4 @@ -Dummy::Application.routes.draw do +Rails.application.routes.draw do resources :comments - - resources :posts + resources :posts end diff --git a/spec/dummy/config/secrets.yml b/spec/dummy/config/secrets.yml new file mode 100644 index 0000000..2f00f6c --- /dev/null +++ b/spec/dummy/config/secrets.yml @@ -0,0 +1,22 @@ +# Be sure to restart your server when you modify this file. + +# Your secret key is used for verifying the integrity of signed cookies. +# If you change this key, all old signed cookies will become invalid! + +# Make sure the secret is at least 30 characters and all random, +# no regular words or you'll be exposed to dictionary attacks. +# You can use `rake secret` to generate a secure secret key. + +# Make sure the secrets in this file are kept private +# if you're sharing your code publicly. + +development: + secret_key_base: a483fbd95f24c265697443cc5d06a20b3d02270001f5df82307f48f709c4ad5646a836a0f880b9f1a481112184179aefb93bc5c0319dd215b3eb214fa8849e0f + +test: + secret_key_base: c676a70370715f1e512a0a81e919a641da823a6aa8c904d7acfff4f842edfd90ceab730eb3a61ed9bdb196bb0b6f0a5f41c84138b97af15b9644fdfcfad4e554 + +# Do not keep production secrets in the repository, +# instead read values from the environment. +production: + secret_key_base: <%= ENV["SECRET_KEY_BASE"] %> diff --git a/spec/dummy/db/schema.rb b/spec/dummy/db/schema.rb index a9f3f5a..361b35f 100644 --- a/spec/dummy/db/schema.rb +++ b/spec/dummy/db/schema.rb @@ -9,32 +9,27 @@ # from scratch. The latter is a flawed and unsustainable approach (the more migrations # you'll amass, the slower it'll run and the greater likelihood for issues). # -# It's strongly recommended to check this file into your version control system. +# It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(:version => 20140219090804) do +ActiveRecord::Schema.define(version: 20120208222551) do - create_table "comments", :force => true do |t| + create_table "comments", force: :cascade do |t| t.integer "post_id" t.string "content" - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false + t.datetime "created_at" + t.datetime "updated_at" end - create_table "some_really_absurdly_long_named_class_that_you_wouldnt_have_thought_ofs", :force => true do |t| - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false - end - - create_table "posts", :force => true do |t| + create_table "posts", force: :cascade do |t| t.string "content" - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false + t.datetime "created_at" + t.datetime "updated_at" end - create_table "users", :force => true do |t| + create_table "users", force: :cascade do |t| t.string "name" - t.datetime "created_at", :null => false - t.datetime "updated_at", :null => false + t.datetime "created_at" + t.datetime "updated_at" end end diff --git a/spec/dummy/db/seeds.rb b/spec/dummy/db/seeds.rb new file mode 100644 index 0000000..4edb1e8 --- /dev/null +++ b/spec/dummy/db/seeds.rb @@ -0,0 +1,7 @@ +# This file should contain all the record creation needed to seed the database with its default values. +# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). +# +# Examples: +# +# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) +# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/spec/dummy/lib/assets/.keep b/spec/dummy/lib/assets/.keep new file mode 100644 index 0000000..e69de29 diff --git a/spec/dummy/lib/tasks/.keep b/spec/dummy/lib/tasks/.keep new file mode 100644 index 0000000..e69de29 diff --git a/spec/dummy/log/.keep b/spec/dummy/log/.keep new file mode 100644 index 0000000..e69de29 diff --git a/spec/dummy/public/404.html b/spec/dummy/public/404.html index 9a48320..b612547 100644 --- a/spec/dummy/public/404.html +++ b/spec/dummy/public/404.html @@ -2,25 +2,66 @@ The page you were looking for doesn't exist (404) -
-

The page you were looking for doesn't exist.

-

You may have mistyped the address or the page may have moved.

+
+

The page you were looking for doesn't exist.

+

You may have mistyped the address or the page may have moved.

+
+

If you are the application owner check the logs for more information.

diff --git a/spec/dummy/public/422.html b/spec/dummy/public/422.html index 83660ab..a21f82b 100644 --- a/spec/dummy/public/422.html +++ b/spec/dummy/public/422.html @@ -2,25 +2,66 @@ The change you wanted was rejected (422) -
-

The change you wanted was rejected.

-

Maybe you tried to change something you didn't have access to.

+
+

The change you wanted was rejected.

+

Maybe you tried to change something you didn't have access to.

+
+

If you are the application owner check the logs for more information.

diff --git a/spec/dummy/public/500.html b/spec/dummy/public/500.html index f3648a0..061abc5 100644 --- a/spec/dummy/public/500.html +++ b/spec/dummy/public/500.html @@ -2,24 +2,65 @@ We're sorry, but something went wrong (500) -
-

We're sorry, but something went wrong.

+
+

We're sorry, but something went wrong.

+
+

If you are the application owner check the logs for more information.

diff --git a/spec/dummy/public/robots.txt b/spec/dummy/public/robots.txt new file mode 100644 index 0000000..3c9c7c0 --- /dev/null +++ b/spec/dummy/public/robots.txt @@ -0,0 +1,5 @@ +# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file +# +# To ban all spiders from the entire site uncomment the next two lines: +# User-agent: * +# Disallow: / diff --git a/spec/dummy/test/controllers/.keep b/spec/dummy/test/controllers/.keep new file mode 100644 index 0000000..e69de29 diff --git a/spec/dummy/test/fixtures/.keep b/spec/dummy/test/fixtures/.keep new file mode 100644 index 0000000..e69de29 diff --git a/spec/dummy/test/helpers/.keep b/spec/dummy/test/helpers/.keep new file mode 100644 index 0000000..e69de29 diff --git a/spec/dummy/test/integration/.keep b/spec/dummy/test/integration/.keep new file mode 100644 index 0000000..e69de29 diff --git a/spec/dummy/test/mailers/.keep b/spec/dummy/test/mailers/.keep new file mode 100644 index 0000000..e69de29 diff --git a/spec/dummy/test/models/.keep b/spec/dummy/test/models/.keep new file mode 100644 index 0000000..e69de29 diff --git a/spec/dummy/test/test_helper.rb b/spec/dummy/test/test_helper.rb new file mode 100644 index 0000000..92e39b2 --- /dev/null +++ b/spec/dummy/test/test_helper.rb @@ -0,0 +1,10 @@ +ENV['RAILS_ENV'] ||= 'test' +require File.expand_path('../../config/environment', __FILE__) +require 'rails/test_help' + +class ActiveSupport::TestCase + # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. + fixtures :all + + # Add more helper methods to be used by all tests here... +end diff --git a/spec/dummy/vendor/assets/javascripts/.keep b/spec/dummy/vendor/assets/javascripts/.keep new file mode 100644 index 0000000..e69de29 diff --git a/spec/dummy/vendor/assets/stylesheets/.keep b/spec/dummy/vendor/assets/stylesheets/.keep new file mode 100644 index 0000000..e69de29 diff --git a/spec/dummy/.rspec b/spec/dummy_rails_3/.rspec similarity index 100% rename from spec/dummy/.rspec rename to spec/dummy_rails_3/.rspec diff --git a/spec/dummy_rails_3/README.rdoc b/spec/dummy_rails_3/README.rdoc new file mode 100644 index 0000000..7c36f23 --- /dev/null +++ b/spec/dummy_rails_3/README.rdoc @@ -0,0 +1,261 @@ +== Welcome to Rails + +Rails is a web-application framework that includes everything needed to create +database-backed web applications according to the Model-View-Control pattern. + +This pattern splits the view (also called the presentation) into "dumb" +templates that are primarily responsible for inserting pre-built data in between +HTML tags. The model contains the "smart" domain objects (such as Account, +Product, Person, Post) that holds all the business logic and knows how to +persist themselves to a database. The controller handles the incoming requests +(such as Save New Account, Update Product, Show Post) by manipulating the model +and directing data to the view. + +In Rails, the model is handled by what's called an object-relational mapping +layer entitled Active Record. This layer allows you to present the data from +database rows as objects and embellish these data objects with business logic +methods. You can read more about Active Record in +link:files/vendor/rails/activerecord/README.html. + +The controller and view are handled by the Action Pack, which handles both +layers by its two parts: Action View and Action Controller. These two layers +are bundled in a single package due to their heavy interdependence. This is +unlike the relationship between the Active Record and Action Pack that is much +more separate. Each of these packages can be used independently outside of +Rails. You can read more about Action Pack in +link:files/vendor/rails/actionpack/README.html. + + +== Getting Started + +1. At the command prompt, create a new Rails application: + rails new myapp (where myapp is the application name) + +2. Change directory to myapp and start the web server: + cd myapp; rails server (run with --help for options) + +3. Go to http://localhost:3000/ and you'll see: + "Welcome aboard: You're riding Ruby on Rails!" + +4. Follow the guidelines to start developing your application. You can find +the following resources handy: + +* The Getting Started Guide: http://guides.rubyonrails.org/getting_started.html +* Ruby on Rails Tutorial Book: http://www.railstutorial.org/ + + +== Debugging Rails + +Sometimes your application goes wrong. Fortunately there are a lot of tools that +will help you debug it and get it back on the rails. + +First area to check is the application log files. Have "tail -f" commands +running on the server.log and development.log. Rails will automatically display +debugging and runtime information to these files. Debugging info will also be +shown in the browser on requests from 127.0.0.1. + +You can also log your own messages directly into the log file from your code +using the Ruby logger class from inside your controllers. Example: + + class WeblogController < ActionController::Base + def destroy + @weblog = Weblog.find(params[:id]) + @weblog.destroy + logger.info("#{Time.now} Destroyed Weblog ID ##{@weblog.id}!") + end + end + +The result will be a message in your log file along the lines of: + + Mon Oct 08 14:22:29 +1000 2007 Destroyed Weblog ID #1! + +More information on how to use the logger is at http://www.ruby-doc.org/core/ + +Also, Ruby documentation can be found at http://www.ruby-lang.org/. There are +several books available online as well: + +* Programming Ruby: http://www.ruby-doc.org/docs/ProgrammingRuby/ (Pickaxe) +* Learn to Program: http://pine.fm/LearnToProgram/ (a beginners guide) + +These two books will bring you up to speed on the Ruby language and also on +programming in general. + + +== Debugger + +Debugger support is available through the debugger command when you start your +Mongrel or WEBrick server with --debugger. This means that you can break out of +execution at any point in the code, investigate and change the model, and then, +resume execution! You need to install ruby-debug to run the server in debugging +mode. With gems, use sudo gem install ruby-debug. Example: + + class WeblogController < ActionController::Base + def index + @posts = Post.all + debugger + end + end + +So the controller will accept the action, run the first line, then present you +with a IRB prompt in the server window. Here you can do things like: + + >> @posts.inspect + => "[#nil, "body"=>nil, "id"=>"1"}>, + #"Rails", "body"=>"Only ten..", "id"=>"2"}>]" + >> @posts.first.title = "hello from a debugger" + => "hello from a debugger" + +...and even better, you can examine how your runtime objects actually work: + + >> f = @posts.first + => #nil, "body"=>nil, "id"=>"1"}> + >> f. + Display all 152 possibilities? (y or n) + +Finally, when you're ready to resume execution, you can enter "cont". + + +== Console + +The console is a Ruby shell, which allows you to interact with your +application's domain model. Here you'll have all parts of the application +configured, just like it is when the application is running. You can inspect +domain models, change values, and save to the database. Starting the script +without arguments will launch it in the development environment. + +To start the console, run rails console from the application +directory. + +Options: + +* Passing the -s, --sandbox argument will rollback any modifications + made to the database. +* Passing an environment name as an argument will load the corresponding + environment. Example: rails console production. + +To reload your controllers and models after launching the console run +reload! + +More information about irb can be found at: +link:http://www.rubycentral.org/pickaxe/irb.html + + +== dbconsole + +You can go to the command line of your database directly through rails +dbconsole. You would be connected to the database with the credentials +defined in database.yml. Starting the script without arguments will connect you +to the development database. Passing an argument will connect you to a different +database, like rails dbconsole production. Currently works for MySQL, +PostgreSQL and SQLite 3. + +== Description of Contents + +The default directory structure of a generated Ruby on Rails application: + + |-- app + | |-- assets + | |-- images + | |-- javascripts + | `-- stylesheets + | |-- controllers + | |-- helpers + | |-- mailers + | |-- models + | `-- views + | `-- layouts + |-- config + | |-- environments + | |-- initializers + | `-- locales + |-- db + |-- doc + |-- lib + | `-- tasks + |-- log + |-- public + |-- script + |-- test + | |-- fixtures + | |-- functional + | |-- integration + | |-- performance + | `-- unit + |-- tmp + | |-- cache + | |-- pids + | |-- sessions + | `-- sockets + `-- vendor + |-- assets + `-- stylesheets + `-- plugins + +app + Holds all the code that's specific to this particular application. + +app/assets + Contains subdirectories for images, stylesheets, and JavaScript files. + +app/controllers + Holds controllers that should be named like weblogs_controller.rb for + automated URL mapping. All controllers should descend from + ApplicationController which itself descends from ActionController::Base. + +app/models + Holds models that should be named like post.rb. Models descend from + ActiveRecord::Base by default. + +app/views + Holds the template files for the view that should be named like + weblogs/index.html.erb for the WeblogsController#index action. All views use + eRuby syntax by default. + +app/views/layouts + Holds the template files for layouts to be used with views. This models the + common header/footer method of wrapping views. In your views, define a layout + using the layout :default and create a file named default.html.erb. + Inside default.html.erb, call <% yield %> to render the view using this + layout. + +app/helpers + Holds view helpers that should be named like weblogs_helper.rb. These are + generated for you automatically when using generators for controllers. + Helpers can be used to wrap functionality for your views into methods. + +config + Configuration files for the Rails environment, the routing map, the database, + and other dependencies. + +db + Contains the database schema in schema.rb. db/migrate contains all the + sequence of Migrations for your schema. + +doc + This directory is where your application documentation will be stored when + generated using rake doc:app + +lib + Application specific libraries. Basically, any kind of custom code that + doesn't belong under controllers, models, or helpers. This directory is in + the load path. + +public + The directory available for the web server. Also contains the dispatchers and the + default HTML files. This should be set as the DOCUMENT_ROOT of your web + server. + +script + Helper scripts for automation and generation. + +test + Unit and functional tests along with fixtures. When using the rails generate + command, template test files will be generated for you and placed in this + directory. + +vendor + External libraries that the application depends on. Also includes the plugins + subdirectory. If the app has frozen rails, those gems also go here, under + vendor/rails/. This directory is in the load path. diff --git a/spec/dummy_rails_3/Rakefile b/spec/dummy_rails_3/Rakefile new file mode 100644 index 0000000..3645852 --- /dev/null +++ b/spec/dummy_rails_3/Rakefile @@ -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__) + +Dummy::Application.load_tasks diff --git a/spec/dummy_rails_3/app/assets/javascripts/application.js b/spec/dummy_rails_3/app/assets/javascripts/application.js new file mode 100644 index 0000000..15ebed9 --- /dev/null +++ b/spec/dummy_rails_3/app/assets/javascripts/application.js @@ -0,0 +1,13 @@ +// 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_tree . diff --git a/spec/dummy_rails_3/app/assets/stylesheets/application.css b/spec/dummy_rails_3/app/assets/stylesheets/application.css new file mode 100644 index 0000000..3b5cc66 --- /dev/null +++ b/spec/dummy_rails_3/app/assets/stylesheets/application.css @@ -0,0 +1,13 @@ +/* + * This is a manifest file that'll be compiled into application.css, which will include all the files + * listed below. + * + * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, + * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path. + * + * 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 . +*/ diff --git a/spec/dummy_rails_3/app/controllers/application_controller.rb b/spec/dummy_rails_3/app/controllers/application_controller.rb new file mode 100644 index 0000000..e8065d9 --- /dev/null +++ b/spec/dummy_rails_3/app/controllers/application_controller.rb @@ -0,0 +1,3 @@ +class ApplicationController < ActionController::Base + protect_from_forgery +end diff --git a/spec/dummy_rails_3/app/controllers/comments_controller.rb b/spec/dummy_rails_3/app/controllers/comments_controller.rb new file mode 100644 index 0000000..1d811bc --- /dev/null +++ b/spec/dummy_rails_3/app/controllers/comments_controller.rb @@ -0,0 +1,13 @@ +class CommentsController < ApplicationController + + def create + @comment = Comment.create! comment_params + redirect_to post_path(@comment.post) + end + + private + + def comment_params + params.require(:comment).permit(:post_id, :content) + end +end diff --git a/spec/dummy_rails_3/app/controllers/posts_controller.rb b/spec/dummy_rails_3/app/controllers/posts_controller.rb new file mode 100644 index 0000000..ec9b559 --- /dev/null +++ b/spec/dummy_rails_3/app/controllers/posts_controller.rb @@ -0,0 +1,23 @@ +class PostsController < ApplicationController + + def index + @posts = Post.all + end + + def new + @post = Post.new + end + + def create + @post = Post.create!(post_params) + redirect_to @post + end + + def show + @post = Post.find(params[:id]) + end + + def post_params + params.require(:post).permit(:id, :content) + end +end diff --git a/spec/dummy_rails_3/app/helpers/application_helper.rb b/spec/dummy_rails_3/app/helpers/application_helper.rb new file mode 100644 index 0000000..de6be79 --- /dev/null +++ b/spec/dummy_rails_3/app/helpers/application_helper.rb @@ -0,0 +1,2 @@ +module ApplicationHelper +end diff --git a/spec/dummy/app/helpers/comments_helper.rb b/spec/dummy_rails_3/app/helpers/comments_helper.rb similarity index 100% rename from spec/dummy/app/helpers/comments_helper.rb rename to spec/dummy_rails_3/app/helpers/comments_helper.rb diff --git a/spec/dummy/app/helpers/posts_helper.rb b/spec/dummy_rails_3/app/helpers/posts_helper.rb similarity index 100% rename from spec/dummy/app/helpers/posts_helper.rb rename to spec/dummy_rails_3/app/helpers/posts_helper.rb diff --git a/spec/dummy_rails_3/app/mailers/.gitkeep b/spec/dummy_rails_3/app/mailers/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/spec/dummy_rails_3/app/models/.gitkeep b/spec/dummy_rails_3/app/models/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/spec/dummy_rails_3/app/models/comment.rb b/spec/dummy_rails_3/app/models/comment.rb new file mode 100644 index 0000000..4e76c5b --- /dev/null +++ b/spec/dummy_rails_3/app/models/comment.rb @@ -0,0 +1,3 @@ +class Comment < ActiveRecord::Base + belongs_to :post +end diff --git a/spec/dummy_rails_3/app/models/post.rb b/spec/dummy_rails_3/app/models/post.rb new file mode 100644 index 0000000..a5d7f9b --- /dev/null +++ b/spec/dummy_rails_3/app/models/post.rb @@ -0,0 +1,5 @@ +class Post < ActiveRecord::Base + has_many :comments + + obfuscate_id :spin => 123456789 +end diff --git a/spec/dummy_rails_3/app/models/user.rb b/spec/dummy_rails_3/app/models/user.rb new file mode 100644 index 0000000..4a57cf0 --- /dev/null +++ b/spec/dummy_rails_3/app/models/user.rb @@ -0,0 +1,2 @@ +class User < ActiveRecord::Base +end diff --git a/spec/dummy_rails_3/app/views/layouts/application.html.erb b/spec/dummy_rails_3/app/views/layouts/application.html.erb new file mode 100644 index 0000000..4cab268 --- /dev/null +++ b/spec/dummy_rails_3/app/views/layouts/application.html.erb @@ -0,0 +1,14 @@ + + + + Dummy + <%= stylesheet_link_tag "application", :media => "all" %> + <%= javascript_include_tag "application" %> + <%= csrf_meta_tags %> + + + +<%= yield %> + + + diff --git a/spec/dummy_rails_3/app/views/posts/index.html.erb b/spec/dummy_rails_3/app/views/posts/index.html.erb new file mode 100644 index 0000000..ffd14ac --- /dev/null +++ b/spec/dummy_rails_3/app/views/posts/index.html.erb @@ -0,0 +1,5 @@ +
    + <% @posts.each do |post| %> +
  • <%= link_to post.content, post %>
  • + <% end %> +
diff --git a/spec/dummy_rails_3/app/views/posts/new.html.erb b/spec/dummy_rails_3/app/views/posts/new.html.erb new file mode 100644 index 0000000..443fb35 --- /dev/null +++ b/spec/dummy_rails_3/app/views/posts/new.html.erb @@ -0,0 +1,6 @@ +<%= form_for(@post) do |f| %> + <%= f.label :content %> + <%= f.text_field :content %> + + <%= f.submit %> +<% end %> diff --git a/spec/dummy_rails_3/app/views/posts/show.html.erb b/spec/dummy_rails_3/app/views/posts/show.html.erb new file mode 100644 index 0000000..28bfe46 --- /dev/null +++ b/spec/dummy_rails_3/app/views/posts/show.html.erb @@ -0,0 +1,20 @@ +post: <%= @post.content %>
+post.id: <%= @post.id %>
+post_path: <%= post_path @post %>. + +
    +<% @post.comments.each do |comment| %> +
  • + comment: <%= comment.content %>
    + comment.id: <%= comment.id %>
    + comment_path: <%= comment_path comment %>. +
  • +<% end %> +
+ +<%= form_for @post.comments.new do |f| %> + <%= f.hidden_field :post_id %> + <%= f.label :content %> + <%= f.text_field :content %> + <%= f.submit %> +<% end %> diff --git a/spec/dummy_rails_3/config.ru b/spec/dummy_rails_3/config.ru new file mode 100644 index 0000000..1989ed8 --- /dev/null +++ b/spec/dummy_rails_3/config.ru @@ -0,0 +1,4 @@ +# This file is used by Rack-based servers to start the application. + +require ::File.expand_path('../config/environment', __FILE__) +run Dummy::Application diff --git a/spec/dummy_rails_3/config/application.rb b/spec/dummy_rails_3/config/application.rb new file mode 100644 index 0000000..6c51a3e --- /dev/null +++ b/spec/dummy_rails_3/config/application.rb @@ -0,0 +1,62 @@ +require File.expand_path('../boot', __FILE__) + +# Pick the frameworks you want: +require "active_record/railtie" +require "action_controller/railtie" +require "action_mailer/railtie" +require "active_resource/railtie" +require "sprockets/railtie" +# require "rails/test_unit/railtie" + +Bundler.require +require "obfuscate_id" + +module Dummy + class Application < Rails::Application + # Settings in config/environments/* take precedence over those specified here. + # Application configuration should go into files in config/initializers + # -- all .rb files in that directory are automatically loaded. + + # Custom directories with classes and modules you want to be autoloadable. + # config.autoload_paths += %W(#{config.root}/extras) + + # Only load the plugins named here, in the order given (default is alphabetical). + # :all can be used as a placeholder for all plugins not explicitly named. + # config.plugins = [ :exception_notification, :ssl_requirement, :all ] + + # Activate observers that should always be running. + # config.active_record.observers = :cacher, :garbage_collector, :forum_observer + + # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. + # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC. + # config.time_zone = 'Central Time (US & Canada)' + + # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. + # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] + # config.i18n.default_locale = :de + + # Configure the default encoding used in templates for Ruby 1.9. + config.encoding = "utf-8" + + # Configure sensitive parameters which will be filtered from the log file. + config.filter_parameters += [:password] + + # Use SQL instead of Active Record's schema dumper when creating the database. + # This is necessary if your schema can't be completely dumped by the schema dumper, + # like if you have constraints or database-specific column types + # config.active_record.schema_format = :sql + + # Enforce whitelist mode for mass assignment. + # This will create an empty whitelist of attributes available for mass-assignment for all models + # in your app. As such, your models will need to explicitly whitelist or blacklist accessible + # parameters by using an attr_accessible or attr_protected declaration. + # config.active_record.whitelist_attributes = true + + # Enable the asset pipeline + config.assets.enabled = true + + # Version of your assets, change this if you want to expire all your assets + config.assets.version = '1.0' + end +end + diff --git a/spec/dummy_rails_3/config/boot.rb b/spec/dummy_rails_3/config/boot.rb new file mode 100644 index 0000000..eba0681 --- /dev/null +++ b/spec/dummy_rails_3/config/boot.rb @@ -0,0 +1,10 @@ +require 'rubygems' +gemfile = File.expand_path('../../../../Gemfile', __FILE__) + +if File.exist?(gemfile) + ENV['BUNDLE_GEMFILE'] = gemfile + require 'bundler' + Bundler.setup +end + +$:.unshift File.expand_path('../../../../lib', __FILE__) \ No newline at end of file diff --git a/spec/dummy_rails_3/config/database.yml b/spec/dummy_rails_3/config/database.yml new file mode 100644 index 0000000..51a4dd4 --- /dev/null +++ b/spec/dummy_rails_3/config/database.yml @@ -0,0 +1,25 @@ +# SQLite version 3.x +# gem install sqlite3 +# +# Ensure the SQLite 3 gem is defined in your Gemfile +# gem 'sqlite3' +development: + adapter: sqlite3 + database: db/development.sqlite3 + pool: 5 + timeout: 5000 + +# Warning: The database defined as "test" will be erased and +# re-generated from your development database when you run "rake". +# Do not set this db to the same as development or production. +test: + adapter: sqlite3 + database: db/test.sqlite3 + pool: 5 + timeout: 5000 + +production: + adapter: sqlite3 + database: db/production.sqlite3 + pool: 5 + timeout: 5000 diff --git a/spec/dummy_rails_3/config/environment.rb b/spec/dummy_rails_3/config/environment.rb new file mode 100644 index 0000000..3da5eb9 --- /dev/null +++ b/spec/dummy_rails_3/config/environment.rb @@ -0,0 +1,5 @@ +# Load the rails application +require File.expand_path('../application', __FILE__) + +# Initialize the rails application +Dummy::Application.initialize! diff --git a/spec/dummy_rails_3/config/environments/development.rb b/spec/dummy_rails_3/config/environments/development.rb new file mode 100644 index 0000000..50105b3 --- /dev/null +++ b/spec/dummy_rails_3/config/environments/development.rb @@ -0,0 +1,37 @@ +Dummy::Application.configure do + # Settings specified here will take precedence over those in config/application.rb + + # In the development environment your application's code is reloaded on + # every request. This slows down response time but is perfect for development + # since you don't have to restart the web server when you make code changes. + config.cache_classes = false + + # Log error messages when you accidentally call methods on nil. + config.whiny_nils = true + + # Show full error reports and disable caching + config.consider_all_requests_local = true + config.action_controller.perform_caching = false + + # Don't care if the mailer can't send + config.action_mailer.raise_delivery_errors = false + + # Print deprecation notices to the Rails logger + config.active_support.deprecation = :log + + # Only use best-standards-support built into browsers + config.action_dispatch.best_standards_support = :builtin + + # Raise exception on mass assignment protection for Active Record models + # config.active_record.mass_assignment_sanitizer = :strict + + # Log the query plan for queries taking more than this (works + # with SQLite, MySQL, and PostgreSQL) + # config.active_record.auto_explain_threshold_in_seconds = 0.5 + + # Do not compress assets + config.assets.compress = false + + # Expands the lines which load the assets + config.assets.debug = true +end diff --git a/spec/dummy_rails_3/config/environments/production.rb b/spec/dummy_rails_3/config/environments/production.rb new file mode 100644 index 0000000..56e3066 --- /dev/null +++ b/spec/dummy_rails_3/config/environments/production.rb @@ -0,0 +1,67 @@ +Dummy::Application.configure do + # Settings specified here will take precedence over those in config/application.rb + + # Code is not reloaded between requests + config.cache_classes = true + + # Full error reports are disabled and caching is turned on + config.consider_all_requests_local = false + config.action_controller.perform_caching = true + + # Disable Rails's static asset server (Apache or nginx will already do this) + config.serve_static_assets = false + + # Compress JavaScripts and CSS + config.assets.compress = true + + # Don't fallback to assets pipeline if a precompiled asset is missed + config.assets.compile = false + + # Generate digests for assets URLs + config.assets.digest = true + + # Defaults to Rails.root.join("public/assets") + # config.assets.manifest = YOUR_PATH + + # Specifies the header that your server uses for sending files + # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache + # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx + + # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. + # config.force_ssl = true + + # See everything in the log (default is :info) + # config.log_level = :debug + + # Prepend all log lines with the following tags + # config.log_tags = [ :subdomain, :uuid ] + + # Use a different logger for distributed setups + # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new) + + # Use a different cache store in production + # config.cache_store = :mem_cache_store + + # Enable serving of images, stylesheets, and JavaScripts from an asset server + # config.action_controller.asset_host = "http://assets.example.com" + + # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added) + # config.assets.precompile += %w( search.js ) + + # Disable delivery errors, bad email addresses will be ignored + # config.action_mailer.raise_delivery_errors = false + + # Enable threaded mode + # config.threadsafe! + + # Enable locale fallbacks for I18n (makes lookups for any locale fall back to + # the I18n.default_locale when a translation can not be found) + config.i18n.fallbacks = true + + # Send deprecation notices to registered listeners + config.active_support.deprecation = :notify + + # Log the query plan for queries taking more than this (works + # with SQLite, MySQL, and PostgreSQL) + # config.active_record.auto_explain_threshold_in_seconds = 0.5 +end diff --git a/spec/dummy_rails_3/config/environments/test.rb b/spec/dummy_rails_3/config/environments/test.rb new file mode 100644 index 0000000..6feb3d2 --- /dev/null +++ b/spec/dummy_rails_3/config/environments/test.rb @@ -0,0 +1,37 @@ +Dummy::Application.configure do + # Settings specified here will take precedence over those in config/application.rb + + # The test environment is used exclusively to run your application's + # test suite. You never need to work with it otherwise. Remember that + # your test database is "scratch space" for the test suite and is wiped + # and recreated between test runs. Don't rely on the data there! + config.cache_classes = true + + # Configure static asset server for tests with Cache-Control for performance + config.serve_static_assets = true + config.static_cache_control = "public, max-age=3600" + + # Log error messages when you accidentally call methods on nil + config.whiny_nils = true + + # Show full error reports and disable caching + config.consider_all_requests_local = true + config.action_controller.perform_caching = false + + # Raise exceptions instead of rendering exception templates + config.action_dispatch.show_exceptions = false + + # Disable request forgery protection in test environment + config.action_controller.allow_forgery_protection = false + + # Tell Action Mailer not to deliver emails to the real world. + # The :test delivery method accumulates sent emails in the + # ActionMailer::Base.deliveries array. + config.action_mailer.delivery_method = :test + + # Raise exception on mass assignment protection for Active Record models + # config.active_record.mass_assignment_sanitizer = :strict + + # Print deprecation notices to the stderr + config.active_support.deprecation = :stderr +end diff --git a/spec/dummy_rails_3/config/initializers/backtrace_silencers.rb b/spec/dummy_rails_3/config/initializers/backtrace_silencers.rb new file mode 100644 index 0000000..59385cd --- /dev/null +++ b/spec/dummy_rails_3/config/initializers/backtrace_silencers.rb @@ -0,0 +1,7 @@ +# Be sure to restart your server when you modify this file. + +# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. +# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } + +# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code. +# Rails.backtrace_cleaner.remove_silencers! diff --git a/spec/dummy_rails_3/config/initializers/inflections.rb b/spec/dummy_rails_3/config/initializers/inflections.rb new file mode 100644 index 0000000..5d8d9be --- /dev/null +++ b/spec/dummy_rails_3/config/initializers/inflections.rb @@ -0,0 +1,15 @@ +# Be sure to restart your server when you modify this file. + +# Add new inflection rules using the following format +# (all these examples are active by default): +# ActiveSupport::Inflector.inflections do |inflect| +# inflect.plural /^(ox)$/i, '\1en' +# inflect.singular /^(ox)en/i, '\1' +# inflect.irregular 'person', 'people' +# inflect.uncountable %w( fish sheep ) +# end +# +# These inflection rules are supported but not enabled by default: +# ActiveSupport::Inflector.inflections do |inflect| +# inflect.acronym 'RESTful' +# end diff --git a/spec/dummy_rails_3/config/initializers/mime_types.rb b/spec/dummy_rails_3/config/initializers/mime_types.rb new file mode 100644 index 0000000..72aca7e --- /dev/null +++ b/spec/dummy_rails_3/config/initializers/mime_types.rb @@ -0,0 +1,5 @@ +# Be sure to restart your server when you modify this file. + +# Add new mime types for use in respond_to blocks: +# Mime::Type.register "text/richtext", :rtf +# Mime::Type.register_alias "text/html", :iphone diff --git a/spec/dummy/config/initializers/secret_token.rb b/spec/dummy_rails_3/config/initializers/secret_token.rb similarity index 100% rename from spec/dummy/config/initializers/secret_token.rb rename to spec/dummy_rails_3/config/initializers/secret_token.rb diff --git a/spec/dummy_rails_3/config/initializers/session_store.rb b/spec/dummy_rails_3/config/initializers/session_store.rb new file mode 100644 index 0000000..952473f --- /dev/null +++ b/spec/dummy_rails_3/config/initializers/session_store.rb @@ -0,0 +1,8 @@ +# Be sure to restart your server when you modify this file. + +Dummy::Application.config.session_store :cookie_store, key: '_dummy_session' + +# Use the database for sessions instead of the cookie-based default, +# which shouldn't be used to store highly confidential information +# (create the session table with "rails generate session_migration") +# Dummy::Application.config.session_store :active_record_store diff --git a/spec/dummy_rails_3/config/initializers/wrap_parameters.rb b/spec/dummy_rails_3/config/initializers/wrap_parameters.rb new file mode 100644 index 0000000..999df20 --- /dev/null +++ b/spec/dummy_rails_3/config/initializers/wrap_parameters.rb @@ -0,0 +1,14 @@ +# Be sure to restart your server when you modify this file. +# +# This file contains settings for ActionController::ParamsWrapper which +# is enabled by default. + +# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. +ActiveSupport.on_load(:action_controller) do + wrap_parameters format: [:json] +end + +# Disable root element in JSON by default. +ActiveSupport.on_load(:active_record) do + self.include_root_in_json = false +end diff --git a/spec/dummy_rails_3/config/locales/en.yml b/spec/dummy_rails_3/config/locales/en.yml new file mode 100644 index 0000000..179c14c --- /dev/null +++ b/spec/dummy_rails_3/config/locales/en.yml @@ -0,0 +1,5 @@ +# Sample localization file for English. Add more files in this directory for other locales. +# See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points. + +en: + hello: "Hello world" diff --git a/spec/dummy_rails_3/config/routes.rb b/spec/dummy_rails_3/config/routes.rb new file mode 100644 index 0000000..3259030 --- /dev/null +++ b/spec/dummy_rails_3/config/routes.rb @@ -0,0 +1,5 @@ +Dummy::Application.routes.draw do + resources :comments + + resources :posts +end diff --git a/spec/dummy_rails_3/db/development.sqlite3 b/spec/dummy_rails_3/db/development.sqlite3 new file mode 100644 index 0000000..e69de29 diff --git a/spec/dummy_rails_3/db/migrate/20120201032713_create_posts.rb b/spec/dummy_rails_3/db/migrate/20120201032713_create_posts.rb new file mode 100644 index 0000000..c3c7176 --- /dev/null +++ b/spec/dummy_rails_3/db/migrate/20120201032713_create_posts.rb @@ -0,0 +1,9 @@ +class CreatePosts < ActiveRecord::Migration + def change + create_table :posts do |t| + t.string :content + + t.timestamps + end + end +end diff --git a/spec/dummy_rails_3/db/migrate/20120201053634_create_comments.rb b/spec/dummy_rails_3/db/migrate/20120201053634_create_comments.rb new file mode 100644 index 0000000..91348ab --- /dev/null +++ b/spec/dummy_rails_3/db/migrate/20120201053634_create_comments.rb @@ -0,0 +1,10 @@ +class CreateComments < ActiveRecord::Migration + def change + create_table :comments do |t| + t.integer :post_id + t.string :content + + t.timestamps + end + end +end diff --git a/spec/dummy_rails_3/db/migrate/20120208222551_create_users.rb b/spec/dummy_rails_3/db/migrate/20120208222551_create_users.rb new file mode 100644 index 0000000..37ce317 --- /dev/null +++ b/spec/dummy_rails_3/db/migrate/20120208222551_create_users.rb @@ -0,0 +1,9 @@ +class CreateUsers < ActiveRecord::Migration + def change + create_table :users do |t| + t.string :name + + t.timestamps + end + end +end diff --git a/spec/dummy_rails_3/db/schema.rb b/spec/dummy_rails_3/db/schema.rb new file mode 100644 index 0000000..a9f3f5a --- /dev/null +++ b/spec/dummy_rails_3/db/schema.rb @@ -0,0 +1,40 @@ +# encoding: UTF-8 +# This file is auto-generated from the current state of the database. Instead +# of editing this file, please use the migrations feature of Active Record to +# incrementally modify your database, and then regenerate this schema definition. +# +# Note that this schema.rb definition is the authoritative source for your +# database schema. If you need to create the application database on another +# system, you should be using db:schema:load, not running all the migrations +# from scratch. The latter is a flawed and unsustainable approach (the more migrations +# you'll amass, the slower it'll run and the greater likelihood for issues). +# +# It's strongly recommended to check this file into your version control system. + +ActiveRecord::Schema.define(:version => 20140219090804) do + + create_table "comments", :force => true do |t| + t.integer "post_id" + t.string "content" + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + end + + create_table "some_really_absurdly_long_named_class_that_you_wouldnt_have_thought_ofs", :force => true do |t| + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + end + + create_table "posts", :force => true do |t| + t.string "content" + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + end + + create_table "users", :force => true do |t| + t.string "name" + t.datetime "created_at", :null => false + t.datetime "updated_at", :null => false + end + +end diff --git a/spec/dummy_rails_3/db/test.sqlite3 b/spec/dummy_rails_3/db/test.sqlite3 new file mode 100644 index 0000000000000000000000000000000000000000..fd5d4a2387560db5305d7f12f01b9d66ba0ae779 GIT binary patch literal 32768 zcmeI*%Wl&^6b4{BH}{HDHeOVfMqbrwQ5`3Nc7a4F7K%vIHY5^VS#B~-EX8)~OQFk@ zH{e|=A)Wy72*8?UpMkNPpqQvaYKy4CZz;+6ICFgF^JH;WdA(n=0!oft&o%>6mr&_o!_ew$=5_z;YdbA~3Vv&?`-y zwCdIUmQJem7y26_UpHMQyLBQ@B$3Igd`dl^-9c7Pa)PwM3Rw!w!#sFmzGvvOTH?1{GItz{inTg2TWV8( zsW-@8qqKq?qU9QB0Hu{<;2}tu~!#wmuufqm?*XbIOTE}SjP2V?yo*5WtZfLx9!+ysJjGlQ)S=0@?y})pf zeE)9JWRiM!l=Wu*x7r_jshqU7#vfc6pY&OqYxtD?s+~6Vlc(v#nt!{v8a;(|Hd7hw z^MbUp!k>q6&bDjYYCvV&qFA_cWvd|WK$Q)7{$_M}kE^Kqo4YK1LzOWjmU(VzTf#0yUR zCVmz##LIiLKokN22tWV=5P$##AOHafKmY;|_}>K{rWHQf{Ab2O!|p$w2*vGxYALPE JvWa8;|4(bD)DHjv literal 0 HcmV?d00001 diff --git a/spec/dummy_rails_3/lib/assets/.gitkeep b/spec/dummy_rails_3/lib/assets/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/spec/dummy_rails_3/log/.gitkeep b/spec/dummy_rails_3/log/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/spec/dummy_rails_3/log/development.log b/spec/dummy_rails_3/log/development.log new file mode 100644 index 0000000..4749dc1 --- /dev/null +++ b/spec/dummy_rails_3/log/development.log @@ -0,0 +1,24 @@ +Connecting to database specified by database.yml +  (0.5ms) select sqlite_version(*) +  (2.6ms) CREATE TABLE "comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "content" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (1.0ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  +  (0.6ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  +  (0.0ms) PRAGMA index_list("schema_migrations") +  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.0ms) SELECT version FROM "schema_migrations" +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20120208222551') +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20120201032713') +  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20120201053634') +  (2.7ms) CREATE TABLE "comments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "post_id" integer, "content" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  +  (1.0ms) CREATE TABLE "some_really_absurdly_long_named_class_that_you_wouldnt_have_thought_ofs" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.9ms) CREATE TABLE "posts" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "content" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)  +  (0.9ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)  +  (0.4ms) select sqlite_version(*) +  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) SELECT version FROM "schema_migrations" +  (0.9ms) INSERT INTO "schema_migrations" (version) VALUES ('20140219090804') +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20120201032713') +  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20120201053634') +  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20120208222551') diff --git a/spec/dummy_rails_3/log/test.log b/spec/dummy_rails_3/log/test.log new file mode 100644 index 0000000..4cb346a --- /dev/null +++ b/spec/dummy_rails_3/log/test.log @@ -0,0 +1,1998 @@ +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (26.8ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "original"], ["created_at", Tue, 29 Oct 2013 02:06:03 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:06:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "original"], ["created_at", Tue, 29 Oct 2013 02:06:03 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:06:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.9ms) UPDATE "posts" SET "content" = 'new', "updated_at" = '2013-10-29 02:06:03.337373' WHERE "posts"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "original"], ["created_at", Tue, 29 Oct 2013 02:06:03 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:06:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] +  (0.2ms) rollback transaction +  (0.0ms) begin transaction + + +Started GET "/posts/new" for 127.0.0.1 at 2013-10-28 19:06:03 -0700 +Processing by PostsController#new as HTML + Rendered posts/new.html.erb within layouts/application (33.5ms) +Completed 200 OK in 39ms (Views: 38.9ms | ActiveRecord: 0.0ms) + + +Started POST "/posts" for 127.0.0.1 at 2013-10-28 19:06:03 -0700 +Processing by PostsController#create as HTML + Parameters: {"utf8"=>"✓", "post"=>{"content"=>"First post"}, "commit"=>"Create Post"} +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "First post"], ["created_at", Tue, 29 Oct 2013 02:06:03 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:06:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:06:03 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 + Rendered posts/show.html.erb within layouts/application (16.9ms) +Completed 200 OK in 19ms (Views: 18.3ms | ActiveRecord: 0.1ms) + + +Started GET "/posts" for 127.0.0.1 at 2013-10-28 19:06:03 -0700 +Processing by PostsController#index as HTML + Post Load (0.1ms) SELECT "posts".* FROM "posts"  + Rendered posts/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:06:03 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 + Rendered posts/show.html.erb within layouts/application (2.1ms) +Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms) + + +Started POST "/comments" for 127.0.0.1 at 2013-10-28 19:06:03 -0700 +Processing by CommentsController#create as HTML + Parameters: {"utf8"=>"✓", "comment"=>{"post_id"=>"1", "content"=>"First comment"}, "commit"=>"Create Comment"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "First comment"], ["created_at", Tue, 29 Oct 2013 02:06:03 UTC +00:00], ["post_id", 1], ["updated_at", Tue, 29 Oct 2013 02:06:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 6ms (ActiveRecord: 0.5ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:06:03 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 + Rendered posts/show.html.erb within layouts/application (2.3ms) +Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms) +  (0.8ms) rollback transaction +  (0.1ms) begin transaction + + +Started GET "/posts/new" for 127.0.0.1 at 2013-10-28 19:06:03 -0700 +Processing by PostsController#new as HTML +Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) + + +Started POST "/posts" for 127.0.0.1 at 2013-10-28 19:06:03 -0700 +Processing by PostsController#create as HTML + Parameters: {"utf8"=>"✓", "post"=>{"content"=>"First post"}, "commit"=>"Create Post"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "First post"], ["created_at", Tue, 29 Oct 2013 02:06:03 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:06:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:06:03 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms) + + +Started GET "/posts" for 127.0.0.1 at 2013-10-28 19:06:03 -0700 +Processing by PostsController#index as HTML + Post Load (0.0ms) SELECT "posts".* FROM "posts"  +Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:06:03 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.1ms) + + +Started POST "/comments" for 127.0.0.1 at 2013-10-28 19:06:03 -0700 +Processing by CommentsController#create as HTML + Parameters: {"utf8"=>"✓", "comment"=>{"post_id"=>"1", "content"=>"First comment"}, "commit"=>"Create Comment"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "First comment"], ["created_at", Tue, 29 Oct 2013 02:06:03 UTC +00:00], ["post_id", 1], ["updated_at", Tue, 29 Oct 2013 02:06:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:06:03 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + + +Started GET "/posts/new" for 127.0.0.1 at 2013-10-28 19:06:03 -0700 +Processing by PostsController#new as HTML +Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) + + +Started POST "/posts" for 127.0.0.1 at 2013-10-28 19:06:03 -0700 +Processing by PostsController#create as HTML + Parameters: {"utf8"=>"✓", "post"=>{"content"=>"First post"}, "commit"=>"Create Post"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "First post"], ["created_at", Tue, 29 Oct 2013 02:06:03 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:06:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:06:03 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms) + + +Started GET "/posts" for 127.0.0.1 at 2013-10-28 19:06:03 -0700 +Processing by PostsController#index as HTML + Post Load (0.1ms) SELECT "posts".* FROM "posts"  +Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.1ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:06:03 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms) + + +Started POST "/comments" for 127.0.0.1 at 2013-10-28 19:06:03 -0700 +Processing by CommentsController#create as HTML + Parameters: {"utf8"=>"✓", "comment"=>{"post_id"=>"1", "content"=>"First comment"}, "commit"=>"Create Comment"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "First comment"], ["created_at", Tue, 29 Oct 2013 02:06:03 UTC +00:00], ["post_id", 1], ["updated_at", Tue, 29 Oct 2013 02:06:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:06:03 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + + +Started GET "/posts/new" for 127.0.0.1 at 2013-10-28 19:06:03 -0700 +Processing by PostsController#new as HTML +Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) + + +Started POST "/posts" for 127.0.0.1 at 2013-10-28 19:06:03 -0700 +Processing by PostsController#create as HTML + Parameters: {"utf8"=>"✓", "post"=>{"content"=>"First post"}, "commit"=>"Create Post"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "First post"], ["created_at", Tue, 29 Oct 2013 02:06:03 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:06:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:06:03 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms) + + +Started GET "/posts" for 127.0.0.1 at 2013-10-28 19:06:03 -0700 +Processing by PostsController#index as HTML + Post Load (0.1ms) SELECT "posts".* FROM "posts"  +Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.1ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:06:03 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms) + + +Started POST "/comments" for 127.0.0.1 at 2013-10-28 19:06:03 -0700 +Processing by CommentsController#create as HTML + Parameters: {"utf8"=>"✓", "comment"=>{"post_id"=>"1", "content"=>"First comment"}, "commit"=>"Create Comment"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "First comment"], ["created_at", Tue, 29 Oct 2013 02:06:03 UTC +00:00], ["post_id", 1], ["updated_at", Tue, 29 Oct 2013 02:06:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:06:03 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms) +  (0.5ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (2.7ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 29 Oct 2013 02:17:58 UTC +00:00], ["name", nil], ["updated_at", Tue, 29 Oct 2013 02:17:58 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (5.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "original"], ["created_at", Tue, 29 Oct 2013 02:17:58 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:17:58 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.2ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] +  (1.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "original"], ["created_at", Tue, 29 Oct 2013 02:17:58 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:17:58 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.9ms) UPDATE "posts" SET "content" = 'new', "updated_at" = '2013-10-29 02:17:58.259209' WHERE "posts"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "original"], ["created_at", Tue, 29 Oct 2013 02:17:58 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:17:58 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "one"], ["created_at", Tue, 29 Oct 2013 02:17:58 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:17:58 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "two"], ["created_at", Tue, 29 Oct 2013 02:17:58 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:17:58 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" IN (1, 2) +  (0.4ms) rollback transaction +  (0.1ms) begin transaction + + +Started GET "/posts/new" for 127.0.0.1 at 2013-10-28 19:17:58 -0700 +Processing by PostsController#new as HTML + Rendered posts/new.html.erb within layouts/application (33.8ms) +Completed 200 OK in 40ms (Views: 39.5ms | ActiveRecord: 0.0ms) + + +Started POST "/posts" for 127.0.0.1 at 2013-10-28 19:17:58 -0700 +Processing by PostsController#create as HTML + Parameters: {"utf8"=>"✓", "post"=>{"content"=>"First post"}, "commit"=>"Create Post"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "First post"], ["created_at", Tue, 29 Oct 2013 02:17:58 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:17:58 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:17:58 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 + Rendered posts/show.html.erb within layouts/application (39.2ms) +Completed 200 OK in 41ms (Views: 40.6ms | ActiveRecord: 0.1ms) + + +Started GET "/posts" for 127.0.0.1 at 2013-10-28 19:17:58 -0700 +Processing by PostsController#index as HTML + Post Load (0.1ms) SELECT "posts".* FROM "posts"  + Rendered posts/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:17:58 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 + Rendered posts/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms) + + +Started POST "/comments" for 127.0.0.1 at 2013-10-28 19:17:58 -0700 +Processing by CommentsController#create as HTML + Parameters: {"utf8"=>"✓", "comment"=>{"post_id"=>"1", "content"=>"First comment"}, "commit"=>"Create Comment"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "First comment"], ["created_at", Tue, 29 Oct 2013 02:17:58 UTC +00:00], ["post_id", 1], ["updated_at", Tue, 29 Oct 2013 02:17:58 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 6ms (ActiveRecord: 0.6ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:17:58 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 + Rendered posts/show.html.erb within layouts/application (2.7ms) +Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.1ms) +  (1.9ms) rollback transaction +  (0.1ms) begin transaction + + +Started GET "/posts/new" for 127.0.0.1 at 2013-10-28 19:17:58 -0700 +Processing by PostsController#new as HTML +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) + + +Started POST "/posts" for 127.0.0.1 at 2013-10-28 19:17:58 -0700 +Processing by PostsController#create as HTML + Parameters: {"utf8"=>"✓", "post"=>{"content"=>"First post"}, "commit"=>"Create Post"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "First post"], ["created_at", Tue, 29 Oct 2013 02:17:58 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:17:58 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:17:58 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms) + + +Started GET "/posts" for 127.0.0.1 at 2013-10-28 19:17:58 -0700 +Processing by PostsController#index as HTML + Post Load (0.0ms) SELECT "posts".* FROM "posts"  +Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:17:58 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms) + + +Started POST "/comments" for 127.0.0.1 at 2013-10-28 19:17:58 -0700 +Processing by CommentsController#create as HTML + Parameters: {"utf8"=>"✓", "comment"=>{"post_id"=>"1", "content"=>"First comment"}, "commit"=>"Create Comment"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "First comment"], ["created_at", Tue, 29 Oct 2013 02:17:58 UTC +00:00], ["post_id", 1], ["updated_at", Tue, 29 Oct 2013 02:17:58 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:17:58 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + + +Started GET "/posts/new" for 127.0.0.1 at 2013-10-28 19:17:58 -0700 +Processing by PostsController#new as HTML +Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) + + +Started POST "/posts" for 127.0.0.1 at 2013-10-28 19:17:58 -0700 +Processing by PostsController#create as HTML + Parameters: {"utf8"=>"✓", "post"=>{"content"=>"First post"}, "commit"=>"Create Post"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "First post"], ["created_at", Tue, 29 Oct 2013 02:17:58 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:17:58 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:17:58 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms) + + +Started GET "/posts" for 127.0.0.1 at 2013-10-28 19:17:58 -0700 +Processing by PostsController#index as HTML + Post Load (0.1ms) SELECT "posts".* FROM "posts"  +Completed 200 OK in 2ms (Views: 1.2ms | ActiveRecord: 0.1ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:17:58 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms) + + +Started POST "/comments" for 127.0.0.1 at 2013-10-28 19:17:58 -0700 +Processing by CommentsController#create as HTML + Parameters: {"utf8"=>"✓", "comment"=>{"post_id"=>"1", "content"=>"First comment"}, "commit"=>"Create Comment"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "First comment"], ["created_at", Tue, 29 Oct 2013 02:17:58 UTC +00:00], ["post_id", 1], ["updated_at", Tue, 29 Oct 2013 02:17:58 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:17:58 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms) +  (0.5ms) rollback transaction +  (0.0ms) begin transaction + + +Started GET "/posts/new" for 127.0.0.1 at 2013-10-28 19:17:58 -0700 +Processing by PostsController#new as HTML +Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms) + + +Started POST "/posts" for 127.0.0.1 at 2013-10-28 19:17:58 -0700 +Processing by PostsController#create as HTML + Parameters: {"utf8"=>"✓", "post"=>{"content"=>"First post"}, "commit"=>"Create Post"} +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "First post"], ["created_at", Tue, 29 Oct 2013 02:17:58 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:17:58 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:17:58 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.1ms) + + +Started GET "/posts" for 127.0.0.1 at 2013-10-28 19:17:58 -0700 +Processing by PostsController#index as HTML + Post Load (0.0ms) SELECT "posts".* FROM "posts"  +Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.0ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:17:58 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms) + + +Started POST "/comments" for 127.0.0.1 at 2013-10-28 19:17:58 -0700 +Processing by CommentsController#create as HTML + Parameters: {"utf8"=>"✓", "comment"=>{"post_id"=>"1", "content"=>"First comment"}, "commit"=>"Create Comment"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "First comment"], ["created_at", Tue, 29 Oct 2013 02:17:58 UTC +00:00], ["post_id", 1], ["updated_at", Tue, 29 Oct 2013 02:17:58 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:17:58 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms) +  (0.4ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (5.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 29 Oct 2013 02:19:03 UTC +00:00], ["name", nil], ["updated_at", Tue, 29 Oct 2013 02:19:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "original"], ["created_at", Tue, 29 Oct 2013 02:19:03 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:19:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "original"], ["created_at", Tue, 29 Oct 2013 02:19:03 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:19:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.7ms) UPDATE "posts" SET "content" = 'new', "updated_at" = '2013-10-29 02:19:03.048425' WHERE "posts"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "original"], ["created_at", Tue, 29 Oct 2013 02:19:03 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:19:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] +  (1.9ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "one"], ["created_at", Tue, 29 Oct 2013 02:19:03 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:19:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "two"], ["created_at", Tue, 29 Oct 2013 02:19:03 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:19:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" IN (1, 2) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction + + +Started GET "/posts/new" for 127.0.0.1 at 2013-10-28 19:19:03 -0700 +Processing by PostsController#new as HTML + Rendered posts/new.html.erb within layouts/application (31.4ms) +Completed 200 OK in 36ms (Views: 36.0ms | ActiveRecord: 0.0ms) + + +Started POST "/posts" for 127.0.0.1 at 2013-10-28 19:19:03 -0700 +Processing by PostsController#create as HTML + Parameters: {"utf8"=>"✓", "post"=>{"content"=>"First post"}, "commit"=>"Create Post"} +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "First post"], ["created_at", Tue, 29 Oct 2013 02:19:03 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:19:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:19:03 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 + Rendered posts/show.html.erb within layouts/application (41.6ms) +Completed 200 OK in 44ms (Views: 43.0ms | ActiveRecord: 0.1ms) + + +Started GET "/posts" for 127.0.0.1 at 2013-10-28 19:19:03 -0700 +Processing by PostsController#index as HTML + Post Load (0.1ms) SELECT "posts".* FROM "posts"  + Rendered posts/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:19:03 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 + Rendered posts/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms) + + +Started POST "/comments" for 127.0.0.1 at 2013-10-28 19:19:03 -0700 +Processing by CommentsController#create as HTML + Parameters: {"utf8"=>"✓", "comment"=>{"post_id"=>"1", "content"=>"First comment"}, "commit"=>"Create Comment"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "First comment"], ["created_at", Tue, 29 Oct 2013 02:19:03 UTC +00:00], ["post_id", 1], ["updated_at", Tue, 29 Oct 2013 02:19:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 6ms (ActiveRecord: 0.5ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:19:03 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 + Rendered posts/show.html.erb within layouts/application (2.4ms) +Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms) +  (1.8ms) rollback transaction +  (0.1ms) begin transaction + + +Started GET "/posts/new" for 127.0.0.1 at 2013-10-28 19:19:03 -0700 +Processing by PostsController#new as HTML +Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) + + +Started POST "/posts" for 127.0.0.1 at 2013-10-28 19:19:03 -0700 +Processing by PostsController#create as HTML + Parameters: {"utf8"=>"✓", "post"=>{"content"=>"First post"}, "commit"=>"Create Post"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "First post"], ["created_at", Tue, 29 Oct 2013 02:19:03 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:19:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:19:03 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms) + + +Started GET "/posts" for 127.0.0.1 at 2013-10-28 19:19:03 -0700 +Processing by PostsController#index as HTML + Post Load (0.0ms) SELECT "posts".* FROM "posts"  +Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.0ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:19:03 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.1ms) + + +Started POST "/comments" for 127.0.0.1 at 2013-10-28 19:19:03 -0700 +Processing by CommentsController#create as HTML + Parameters: {"utf8"=>"✓", "comment"=>{"post_id"=>"1", "content"=>"First comment"}, "commit"=>"Create Comment"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "First comment"], ["created_at", Tue, 29 Oct 2013 02:19:03 UTC +00:00], ["post_id", 1], ["updated_at", Tue, 29 Oct 2013 02:19:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:19:03 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction + + +Started GET "/posts/new" for 127.0.0.1 at 2013-10-28 19:19:03 -0700 +Processing by PostsController#new as HTML +Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) + + +Started POST "/posts" for 127.0.0.1 at 2013-10-28 19:19:03 -0700 +Processing by PostsController#create as HTML + Parameters: {"utf8"=>"✓", "post"=>{"content"=>"First post"}, "commit"=>"Create Post"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "First post"], ["created_at", Tue, 29 Oct 2013 02:19:03 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:19:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:19:03 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms) + + +Started GET "/posts" for 127.0.0.1 at 2013-10-28 19:19:03 -0700 +Processing by PostsController#index as HTML + Post Load (0.1ms) SELECT "posts".* FROM "posts"  +Completed 200 OK in 1ms (Views: 1.0ms | ActiveRecord: 0.1ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:19:03 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.2ms) + + +Started POST "/comments" for 127.0.0.1 at 2013-10-28 19:19:03 -0700 +Processing by CommentsController#create as HTML + Parameters: {"utf8"=>"✓", "comment"=>{"post_id"=>"1", "content"=>"First comment"}, "commit"=>"Create Comment"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "First comment"], ["created_at", Tue, 29 Oct 2013 02:19:03 UTC +00:00], ["post_id", 1], ["updated_at", Tue, 29 Oct 2013 02:19:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:19:03 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.1ms) +  (1.8ms) rollback transaction +  (0.1ms) begin transaction + + +Started GET "/posts/new" for 127.0.0.1 at 2013-10-28 19:19:03 -0700 +Processing by PostsController#new as HTML +Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) + + +Started POST "/posts" for 127.0.0.1 at 2013-10-28 19:19:03 -0700 +Processing by PostsController#create as HTML + Parameters: {"utf8"=>"✓", "post"=>{"content"=>"First post"}, "commit"=>"Create Post"} +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "First post"], ["created_at", Tue, 29 Oct 2013 02:19:03 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:19:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:19:03 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.1ms) + + +Started GET "/posts" for 127.0.0.1 at 2013-10-28 19:19:03 -0700 +Processing by PostsController#index as HTML + Post Load (0.0ms) SELECT "posts".* FROM "posts"  +Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.0ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:19:03 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms) + + +Started POST "/comments" for 127.0.0.1 at 2013-10-28 19:19:03 -0700 +Processing by CommentsController#create as HTML + Parameters: {"utf8"=>"✓", "comment"=>{"post_id"=>"1", "content"=>"First comment"}, "commit"=>"Create Comment"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "First comment"], ["created_at", Tue, 29 Oct 2013 02:19:03 UTC +00:00], ["post_id", 1], ["updated_at", Tue, 29 Oct 2013 02:19:03 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2ms (ActiveRecord: 0.5ms) + + +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:19:03 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms) +  (1.8ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (2.8ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 29 Oct 2013 02:26:41 UTC +00:00], ["name", nil], ["updated_at", Tue, 29 Oct 2013 02:26:41 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "original"], ["created_at", Tue, 29 Oct 2013 02:26:41 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:26:41 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "original"], ["created_at", Tue, 29 Oct 2013 02:26:41 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:26:41 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.8ms) UPDATE "posts" SET "content" = 'new', "updated_at" = '2013-10-29 02:26:41.040404' WHERE "posts"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "original"], ["created_at", Tue, 29 Oct 2013 02:26:41 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:26:41 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "one"], ["created_at", Tue, 29 Oct 2013 02:26:41 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:26:41 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "two"], ["created_at", Tue, 29 Oct 2013 02:26:41 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:26:41 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" IN (1, 2) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Started GET "/posts/new" for 127.0.0.1 at 2013-10-28 19:26:41 -0700 +Processing by PostsController#new as HTML + Rendered posts/new.html.erb within layouts/application (8.3ms) +Completed 200 OK in 17.0ms (Views: 16.6ms | ActiveRecord: 0.0ms) +Started POST "/posts" for 127.0.0.1 at 2013-10-28 19:26:41 -0700 +Processing by PostsController#create as HTML + Parameters: {"utf8"=>"✓", "post"=>{"content"=>"First post"}, "commit"=>"Create Post"} +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "First post"], ["created_at", Tue, 29 Oct 2013 02:26:41 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:26:41 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2.4ms (ActiveRecord: 0.5ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:26:41 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 + Rendered posts/show.html.erb within layouts/application (50.2ms) +Completed 200 OK in 52.5ms (Views: 51.6ms | ActiveRecord: 0.1ms) +Started GET "/posts" for 127.0.0.1 at 2013-10-28 19:26:41 -0700 +Processing by PostsController#index as HTML + Post Load (0.0ms) SELECT "posts".* FROM "posts"  + Rendered posts/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 2.4ms (Views: 1.8ms | ActiveRecord: 0.0ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:26:41 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 + Rendered posts/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 3.1ms (Views: 2.4ms | ActiveRecord: 0.1ms) +Started POST "/comments" for 127.0.0.1 at 2013-10-28 19:26:41 -0700 +Processing by CommentsController#create as HTML + Parameters: {"utf8"=>"✓", "comment"=>{"post_id"=>"1", "content"=>"First comment"}, "commit"=>"Create Comment"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "First comment"], ["created_at", Tue, 29 Oct 2013 02:26:41 UTC +00:00], ["post_id", 1], ["updated_at", Tue, 29 Oct 2013 02:26:41 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 6.7ms (ActiveRecord: 0.5ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:26:41 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 + Rendered posts/show.html.erb within layouts/application (2.4ms) +Completed 200 OK in 3.8ms (Views: 3.2ms | ActiveRecord: 0.1ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Started GET "/posts/new" for 127.0.0.1 at 2013-10-28 19:26:41 -0700 +Processing by PostsController#new as HTML +Completed 200 OK in 1.9ms (Views: 1.8ms | ActiveRecord: 0.0ms) +Started POST "/posts" for 127.0.0.1 at 2013-10-28 19:26:41 -0700 +Processing by PostsController#create as HTML + Parameters: {"utf8"=>"✓", "post"=>{"content"=>"First post"}, "commit"=>"Create Post"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "First post"], ["created_at", Tue, 29 Oct 2013 02:26:41 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:26:41 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 1.6ms (ActiveRecord: 0.3ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:26:41 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 2.9ms (Views: 2.4ms | ActiveRecord: 0.1ms) +Started GET "/posts" for 127.0.0.1 at 2013-10-28 19:26:41 -0700 +Processing by PostsController#index as HTML + Post Load (0.0ms) SELECT "posts".* FROM "posts"  +Completed 200 OK in 1.2ms (Views: 0.9ms | ActiveRecord: 0.0ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:26:41 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 2.4ms (Views: 2.0ms | ActiveRecord: 0.1ms) +Started POST "/comments" for 127.0.0.1 at 2013-10-28 19:26:41 -0700 +Processing by CommentsController#create as HTML + Parameters: {"utf8"=>"✓", "comment"=>{"post_id"=>"1", "content"=>"First comment"}, "commit"=>"Create Comment"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "First comment"], ["created_at", Tue, 29 Oct 2013 02:26:41 UTC +00:00], ["post_id", 1], ["updated_at", Tue, 29 Oct 2013 02:26:41 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 1.8ms (ActiveRecord: 0.4ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:26:41 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 2.7ms (Views: 2.3ms | ActiveRecord: 0.1ms) +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +Started GET "/posts/new" for 127.0.0.1 at 2013-10-28 19:26:41 -0700 +Processing by PostsController#new as HTML +Completed 200 OK in 2.5ms (Views: 2.3ms | ActiveRecord: 0.0ms) +Started POST "/posts" for 127.0.0.1 at 2013-10-28 19:26:41 -0700 +Processing by PostsController#create as HTML + Parameters: {"utf8"=>"✓", "post"=>{"content"=>"First post"}, "commit"=>"Create Post"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "First post"], ["created_at", Tue, 29 Oct 2013 02:26:41 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:26:41 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2.0ms (ActiveRecord: 0.4ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:26:41 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 3.5ms (Views: 2.8ms | ActiveRecord: 0.1ms) +Started GET "/posts" for 127.0.0.1 at 2013-10-28 19:26:41 -0700 +Processing by PostsController#index as HTML + Post Load (0.1ms) SELECT "posts".* FROM "posts"  +Completed 200 OK in 1.4ms (Views: 1.0ms | ActiveRecord: 0.1ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:26:41 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 3.2ms (Views: 2.5ms | ActiveRecord: 0.1ms) +Started POST "/comments" for 127.0.0.1 at 2013-10-28 19:26:41 -0700 +Processing by CommentsController#create as HTML + Parameters: {"utf8"=>"✓", "comment"=>{"post_id"=>"1", "content"=>"First comment"}, "commit"=>"Create Comment"} +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "First comment"], ["created_at", Tue, 29 Oct 2013 02:26:41 UTC +00:00], ["post_id", 1], ["updated_at", Tue, 29 Oct 2013 02:26:41 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2.5ms (ActiveRecord: 0.6ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:26:41 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.2ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 5.3ms (Views: 4.4ms | ActiveRecord: 0.2ms) +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +Started GET "/posts/new" for 127.0.0.1 at 2013-10-28 19:26:41 -0700 +Processing by PostsController#new as HTML +Completed 200 OK in 2.2ms (Views: 2.0ms | ActiveRecord: 0.0ms) +Started POST "/posts" for 127.0.0.1 at 2013-10-28 19:26:41 -0700 +Processing by PostsController#create as HTML + Parameters: {"utf8"=>"✓", "post"=>{"content"=>"First post"}, "commit"=>"Create Post"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "First post"], ["created_at", Tue, 29 Oct 2013 02:26:41 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:26:41 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 1.8ms (ActiveRecord: 0.4ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:26:41 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 3.2ms (Views: 2.5ms | ActiveRecord: 0.1ms) +Started GET "/posts" for 127.0.0.1 at 2013-10-28 19:26:41 -0700 +Processing by PostsController#index as HTML + Post Load (0.0ms) SELECT "posts".* FROM "posts"  +Completed 200 OK in 1.2ms (Views: 0.9ms | ActiveRecord: 0.0ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:26:41 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 2.6ms (Views: 2.1ms | ActiveRecord: 0.1ms) +Started POST "/comments" for 127.0.0.1 at 2013-10-28 19:26:41 -0700 +Processing by CommentsController#create as HTML + Parameters: {"utf8"=>"✓", "comment"=>{"post_id"=>"1", "content"=>"First comment"}, "commit"=>"Create Comment"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "First comment"], ["created_at", Tue, 29 Oct 2013 02:26:41 UTC +00:00], ["post_id", 1], ["updated_at", Tue, 29 Oct 2013 02:26:41 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 1.9ms (ActiveRecord: 0.4ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:26:41 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 2.7ms (Views: 2.2ms | ActiveRecord: 0.1ms) +  (0.5ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (3.5ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 29 Oct 2013 02:43:54 UTC +00:00], ["name", nil], ["updated_at", Tue, 29 Oct 2013 02:43:54 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "original"], ["created_at", Tue, 29 Oct 2013 02:43:54 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:43:54 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "original"], ["created_at", Tue, 29 Oct 2013 02:43:54 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:43:54 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.9ms) UPDATE "posts" SET "content" = 'new', "updated_at" = '2013-10-29 02:43:54.051549' WHERE "posts"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "original"], ["created_at", Tue, 29 Oct 2013 02:43:54 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:43:54 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "one"], ["created_at", Tue, 29 Oct 2013 02:43:54 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:43:54 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "two"], ["created_at", Tue, 29 Oct 2013 02:43:54 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:43:54 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" IN (1, 2) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Started GET "/posts/new" for 127.0.0.1 at 2013-10-28 19:43:54 -0700 +Processing by PostsController#new as HTML + Rendered posts/new.html.erb within layouts/application (5.5ms) +Completed 200 OK in 12.0ms (Views: 11.6ms | ActiveRecord: 0.0ms) +Started POST "/posts" for 127.0.0.1 at 2013-10-28 19:43:54 -0700 +Processing by PostsController#create as HTML + Parameters: {"utf8"=>"✓", "post"=>{"content"=>"First post"}, "commit"=>"Create Post"} +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "First post"], ["created_at", Tue, 29 Oct 2013 02:43:54 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:43:54 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2.4ms (ActiveRecord: 0.5ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:43:54 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 + Rendered posts/show.html.erb within layouts/application (47.5ms) +Completed 200 OK in 49.8ms (Views: 49.0ms | ActiveRecord: 0.1ms) +Started GET "/posts" for 127.0.0.1 at 2013-10-28 19:43:54 -0700 +Processing by PostsController#index as HTML + Post Load (0.1ms) SELECT "posts".* FROM "posts"  + Rendered posts/index.html.erb within layouts/application (0.8ms) +Completed 200 OK in 2.5ms (Views: 1.9ms | ActiveRecord: 0.1ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:43:54 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 + Rendered posts/show.html.erb within layouts/application (1.9ms) +Completed 200 OK in 3.2ms (Views: 2.6ms | ActiveRecord: 0.1ms) +Started POST "/comments" for 127.0.0.1 at 2013-10-28 19:43:54 -0700 +Processing by CommentsController#create as HTML + Parameters: {"utf8"=>"✓", "comment"=>{"post_id"=>"1", "content"=>"First comment"}, "commit"=>"Create Comment"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "First comment"], ["created_at", Tue, 29 Oct 2013 02:43:54 UTC +00:00], ["post_id", 1], ["updated_at", Tue, 29 Oct 2013 02:43:54 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 7.7ms (ActiveRecord: 0.6ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:43:54 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 + Rendered posts/show.html.erb within layouts/application (2.5ms) +Completed 200 OK in 4.1ms (Views: 3.5ms | ActiveRecord: 0.1ms) +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +Started GET "/posts/new" for 127.0.0.1 at 2013-10-28 19:43:54 -0700 +Processing by PostsController#new as HTML +Completed 200 OK in 2.0ms (Views: 1.8ms | ActiveRecord: 0.0ms) +Started POST "/posts" for 127.0.0.1 at 2013-10-28 19:43:54 -0700 +Processing by PostsController#create as HTML + Parameters: {"utf8"=>"✓", "post"=>{"content"=>"First post"}, "commit"=>"Create Post"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "First post"], ["created_at", Tue, 29 Oct 2013 02:43:54 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:43:54 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 1.6ms (ActiveRecord: 0.4ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:43:54 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 3.0ms (Views: 2.4ms | ActiveRecord: 0.1ms) +Started GET "/posts" for 127.0.0.1 at 2013-10-28 19:43:54 -0700 +Processing by PostsController#index as HTML + Post Load (0.0ms) SELECT "posts".* FROM "posts"  +Completed 200 OK in 1.2ms (Views: 0.9ms | ActiveRecord: 0.0ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:43:54 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 2.6ms (Views: 2.1ms | ActiveRecord: 0.1ms) +Started POST "/comments" for 127.0.0.1 at 2013-10-28 19:43:54 -0700 +Processing by CommentsController#create as HTML + Parameters: {"utf8"=>"✓", "comment"=>{"post_id"=>"1", "content"=>"First comment"}, "commit"=>"Create Comment"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "First comment"], ["created_at", Tue, 29 Oct 2013 02:43:54 UTC +00:00], ["post_id", 1], ["updated_at", Tue, 29 Oct 2013 02:43:54 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 1.9ms (ActiveRecord: 0.4ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:43:54 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 2.7ms (Views: 2.3ms | ActiveRecord: 0.1ms) +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +Started GET "/posts/new" for 127.0.0.1 at 2013-10-28 19:43:54 -0700 +Processing by PostsController#new as HTML +Completed 200 OK in 2.0ms (Views: 1.8ms | ActiveRecord: 0.0ms) +Started POST "/posts" for 127.0.0.1 at 2013-10-28 19:43:54 -0700 +Processing by PostsController#create as HTML + Parameters: {"utf8"=>"✓", "post"=>{"content"=>"First post"}, "commit"=>"Create Post"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "First post"], ["created_at", Tue, 29 Oct 2013 02:43:54 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:43:54 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 1.8ms (ActiveRecord: 0.4ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:43:54 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 3.3ms (Views: 2.7ms | ActiveRecord: 0.1ms) +Started GET "/posts" for 127.0.0.1 at 2013-10-28 19:43:54 -0700 +Processing by PostsController#index as HTML + Post Load (0.1ms) SELECT "posts".* FROM "posts"  +Completed 200 OK in 1.7ms (Views: 1.2ms | ActiveRecord: 0.1ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:43:54 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 3.4ms (Views: 2.6ms | ActiveRecord: 0.1ms) +Started POST "/comments" for 127.0.0.1 at 2013-10-28 19:43:54 -0700 +Processing by CommentsController#create as HTML + Parameters: {"utf8"=>"✓", "comment"=>{"post_id"=>"1", "content"=>"First comment"}, "commit"=>"Create Comment"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "First comment"], ["created_at", Tue, 29 Oct 2013 02:43:54 UTC +00:00], ["post_id", 1], ["updated_at", Tue, 29 Oct 2013 02:43:54 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2.0ms (ActiveRecord: 0.5ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:43:54 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 32.7ms (Views: 31.9ms | ActiveRecord: 0.1ms) +  (1.2ms) rollback transaction +  (0.1ms) begin transaction +Started GET "/posts/new" for 127.0.0.1 at 2013-10-28 19:43:54 -0700 +Processing by PostsController#new as HTML +Completed 200 OK in 2.2ms (Views: 2.0ms | ActiveRecord: 0.0ms) +Started POST "/posts" for 127.0.0.1 at 2013-10-28 19:43:54 -0700 +Processing by PostsController#create as HTML + Parameters: {"utf8"=>"✓", "post"=>{"content"=>"First post"}, "commit"=>"Create Post"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "First post"], ["created_at", Tue, 29 Oct 2013 02:43:54 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:43:54 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 1.7ms (ActiveRecord: 0.4ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:43:54 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 5.1ms (Views: 3.9ms | ActiveRecord: 0.1ms) +Started GET "/posts" for 127.0.0.1 at 2013-10-28 19:43:54 -0700 +Processing by PostsController#index as HTML + Post Load (0.1ms) SELECT "posts".* FROM "posts"  +Completed 200 OK in 1.6ms (Views: 1.2ms | ActiveRecord: 0.1ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:43:54 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 4.0ms (Views: 3.4ms | ActiveRecord: 0.1ms) +Started POST "/comments" for 127.0.0.1 at 2013-10-28 19:43:54 -0700 +Processing by CommentsController#create as HTML + Parameters: {"utf8"=>"✓", "comment"=>{"post_id"=>"1", "content"=>"First comment"}, "commit"=>"Create Comment"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "First comment"], ["created_at", Tue, 29 Oct 2013 02:43:54 UTC +00:00], ["post_id", 1], ["updated_at", Tue, 29 Oct 2013 02:43:54 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2.4ms (ActiveRecord: 0.5ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:43:54 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 3.3ms (Views: 2.7ms | ActiveRecord: 0.1ms) +  (0.4ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (2.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 29 Oct 2013 02:43:59 UTC +00:00], ["name", nil], ["updated_at", Tue, 29 Oct 2013 02:43:59 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (1.8ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "original"], ["created_at", Tue, 29 Oct 2013 02:43:59 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:43:59 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "original"], ["created_at", Tue, 29 Oct 2013 02:43:59 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:43:59 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.8ms) UPDATE "posts" SET "content" = 'new', "updated_at" = '2013-10-29 02:43:59.106379' WHERE "posts"."id" = 1 +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "original"], ["created_at", Tue, 29 Oct 2013 02:43:59 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:43:59 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "one"], ["created_at", Tue, 29 Oct 2013 02:43:59 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:43:59 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "two"], ["created_at", Tue, 29 Oct 2013 02:43:59 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:43:59 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" IN (1, 2) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Started GET "/posts/new" for 127.0.0.1 at 2013-10-28 19:43:59 -0700 +Processing by PostsController#new as HTML + Rendered posts/new.html.erb within layouts/application (5.1ms) +Completed 200 OK in 10.1ms (Views: 9.7ms | ActiveRecord: 0.0ms) +Started POST "/posts" for 127.0.0.1 at 2013-10-28 19:43:59 -0700 +Processing by PostsController#create as HTML + Parameters: {"utf8"=>"✓", "post"=>{"content"=>"First post"}, "commit"=>"Create Post"} +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "First post"], ["created_at", Tue, 29 Oct 2013 02:43:59 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:43:59 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2.2ms (ActiveRecord: 0.4ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:43:59 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 + Rendered posts/show.html.erb within layouts/application (40.5ms) +Completed 200 OK in 42.9ms (Views: 41.9ms | ActiveRecord: 0.1ms) +Started GET "/posts" for 127.0.0.1 at 2013-10-28 19:43:59 -0700 +Processing by PostsController#index as HTML + Post Load (0.1ms) SELECT "posts".* FROM "posts"  + Rendered posts/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 2.4ms (Views: 1.8ms | ActiveRecord: 0.1ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:43:59 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 + Rendered posts/show.html.erb within layouts/application (1.9ms) +Completed 200 OK in 3.2ms (Views: 2.5ms | ActiveRecord: 0.1ms) +Started POST "/comments" for 127.0.0.1 at 2013-10-28 19:43:59 -0700 +Processing by CommentsController#create as HTML + Parameters: {"utf8"=>"✓", "comment"=>{"post_id"=>"1", "content"=>"First comment"}, "commit"=>"Create Comment"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "First comment"], ["created_at", Tue, 29 Oct 2013 02:43:59 UTC +00:00], ["post_id", 1], ["updated_at", Tue, 29 Oct 2013 02:43:59 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 5.8ms (ActiveRecord: 0.5ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:43:59 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 + Rendered posts/show.html.erb within layouts/application (2.4ms) +Completed 200 OK in 3.8ms (Views: 3.3ms | ActiveRecord: 0.1ms) +  (1.7ms) rollback transaction +  (0.1ms) begin transaction +Started GET "/posts/new" for 127.0.0.1 at 2013-10-28 19:43:59 -0700 +Processing by PostsController#new as HTML +Completed 200 OK in 2.2ms (Views: 2.0ms | ActiveRecord: 0.0ms) +Started POST "/posts" for 127.0.0.1 at 2013-10-28 19:43:59 -0700 +Processing by PostsController#create as HTML + Parameters: {"utf8"=>"✓", "post"=>{"content"=>"First post"}, "commit"=>"Create Post"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "First post"], ["created_at", Tue, 29 Oct 2013 02:43:59 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:43:59 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 1.7ms (ActiveRecord: 0.4ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:43:59 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 3.1ms (Views: 2.4ms | ActiveRecord: 0.1ms) +Started GET "/posts" for 127.0.0.1 at 2013-10-28 19:43:59 -0700 +Processing by PostsController#index as HTML + Post Load (0.0ms) SELECT "posts".* FROM "posts"  +Completed 200 OK in 1.2ms (Views: 0.9ms | ActiveRecord: 0.0ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:43:59 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 2.5ms (Views: 2.1ms | ActiveRecord: 0.1ms) +Started POST "/comments" for 127.0.0.1 at 2013-10-28 19:43:59 -0700 +Processing by CommentsController#create as HTML + Parameters: {"utf8"=>"✓", "comment"=>{"post_id"=>"1", "content"=>"First comment"}, "commit"=>"Create Comment"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "First comment"], ["created_at", Tue, 29 Oct 2013 02:43:59 UTC +00:00], ["post_id", 1], ["updated_at", Tue, 29 Oct 2013 02:43:59 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 1.8ms (ActiveRecord: 0.4ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:43:59 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 2.8ms (Views: 2.3ms | ActiveRecord: 0.1ms) +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +Started GET "/posts/new" for 127.0.0.1 at 2013-10-28 19:43:59 -0700 +Processing by PostsController#new as HTML +Completed 200 OK in 2.6ms (Views: 2.3ms | ActiveRecord: 0.0ms) +Started POST "/posts" for 127.0.0.1 at 2013-10-28 19:43:59 -0700 +Processing by PostsController#create as HTML + Parameters: {"utf8"=>"✓", "post"=>{"content"=>"First post"}, "commit"=>"Create Post"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "First post"], ["created_at", Tue, 29 Oct 2013 02:43:59 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:43:59 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 1.8ms (ActiveRecord: 0.4ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:43:59 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 3.6ms (Views: 2.9ms | ActiveRecord: 0.1ms) +Started GET "/posts" for 127.0.0.1 at 2013-10-28 19:43:59 -0700 +Processing by PostsController#index as HTML + Post Load (0.1ms) SELECT "posts".* FROM "posts"  +Completed 200 OK in 1.5ms (Views: 1.0ms | ActiveRecord: 0.1ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:43:59 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 2.7ms (Views: 2.2ms | ActiveRecord: 0.1ms) +Started POST "/comments" for 127.0.0.1 at 2013-10-28 19:43:59 -0700 +Processing by CommentsController#create as HTML + Parameters: {"utf8"=>"✓", "comment"=>{"post_id"=>"1", "content"=>"First comment"}, "commit"=>"Create Comment"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "First comment"], ["created_at", Tue, 29 Oct 2013 02:43:59 UTC +00:00], ["post_id", 1], ["updated_at", Tue, 29 Oct 2013 02:43:59 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 1.9ms (ActiveRecord: 0.4ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:43:59 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 35.7ms (Views: 35.1ms | ActiveRecord: 0.1ms) +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +Started GET "/posts/new" for 127.0.0.1 at 2013-10-28 19:43:59 -0700 +Processing by PostsController#new as HTML +Completed 200 OK in 2.3ms (Views: 2.1ms | ActiveRecord: 0.0ms) +Started POST "/posts" for 127.0.0.1 at 2013-10-28 19:43:59 -0700 +Processing by PostsController#create as HTML + Parameters: {"utf8"=>"✓", "post"=>{"content"=>"First post"}, "commit"=>"Create Post"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "First post"], ["created_at", Tue, 29 Oct 2013 02:43:59 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:43:59 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 1.8ms (ActiveRecord: 0.4ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:43:59 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 3.2ms (Views: 2.5ms | ActiveRecord: 0.1ms) +Started GET "/posts" for 127.0.0.1 at 2013-10-28 19:43:59 -0700 +Processing by PostsController#index as HTML + Post Load (0.0ms) SELECT "posts".* FROM "posts"  +Completed 200 OK in 1.2ms (Views: 0.9ms | ActiveRecord: 0.0ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:43:59 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 2.4ms (Views: 2.0ms | ActiveRecord: 0.1ms) +Started POST "/comments" for 127.0.0.1 at 2013-10-28 19:43:59 -0700 +Processing by CommentsController#create as HTML + Parameters: {"utf8"=>"✓", "comment"=>{"post_id"=>"1", "content"=>"First comment"}, "commit"=>"Create Comment"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "First comment"], ["created_at", Tue, 29 Oct 2013 02:43:59 UTC +00:00], ["post_id", 1], ["updated_at", Tue, 29 Oct 2013 02:43:59 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 1.9ms (ActiveRecord: 0.4ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:43:59 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 2.7ms (Views: 2.3ms | ActiveRecord: 0.1ms) +  (0.4ms) rollback transaction +Connecting to database specified by database.yml +  (0.1ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (2.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Tue, 29 Oct 2013 02:46:21 UTC +00:00], ["name", nil], ["updated_at", Tue, 29 Oct 2013 02:46:21 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (1.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "original"], ["created_at", Tue, 29 Oct 2013 02:46:21 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:46:21 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "original"], ["created_at", Tue, 29 Oct 2013 02:46:21 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:46:21 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] +  (0.0ms) SAVEPOINT active_record_1 +  (0.7ms) UPDATE "posts" SET "content" = 'new', "updated_at" = '2013-10-29 02:46:21.989401' WHERE "posts"."id" = 1 +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "original"], ["created_at", Tue, 29 Oct 2013 02:46:21 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:46:21 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "one"], ["created_at", Tue, 29 Oct 2013 02:46:21 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:46:21 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "two"], ["created_at", Tue, 29 Oct 2013 02:46:21 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:46:21 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" IN (1, 2) +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +Started GET "/posts/new" for 127.0.0.1 at 2013-10-28 19:46:22 -0700 +Processing by PostsController#new as HTML + Rendered posts/new.html.erb within layouts/application (5.5ms) +Completed 200 OK in 11.1ms (Views: 10.7ms | ActiveRecord: 0.0ms) +Started POST "/posts" for 127.0.0.1 at 2013-10-28 19:46:22 -0700 +Processing by PostsController#create as HTML + Parameters: {"utf8"=>"✓", "post"=>{"content"=>"First post"}, "commit"=>"Create Post"} +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "First post"], ["created_at", Tue, 29 Oct 2013 02:46:22 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:46:22 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2.2ms (ActiveRecord: 0.4ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:46:22 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 + Rendered posts/show.html.erb within layouts/application (40.7ms) +Completed 200 OK in 43.0ms (Views: 42.1ms | ActiveRecord: 0.1ms) +Started GET "/posts" for 127.0.0.1 at 2013-10-28 19:46:22 -0700 +Processing by PostsController#index as HTML + Post Load (0.1ms) SELECT "posts".* FROM "posts"  + Rendered posts/index.html.erb within layouts/application (0.7ms) +Completed 200 OK in 2.4ms (Views: 1.8ms | ActiveRecord: 0.1ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:46:22 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 + Rendered posts/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 3.1ms (Views: 2.5ms | ActiveRecord: 0.1ms) +Started POST "/comments" for 127.0.0.1 at 2013-10-28 19:46:22 -0700 +Processing by CommentsController#create as HTML + Parameters: {"utf8"=>"✓", "comment"=>{"post_id"=>"1", "content"=>"First comment"}, "commit"=>"Create Comment"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "First comment"], ["created_at", Tue, 29 Oct 2013 02:46:22 UTC +00:00], ["post_id", 1], ["updated_at", Tue, 29 Oct 2013 02:46:22 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 5.9ms (ActiveRecord: 0.6ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:46:22 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 + Rendered posts/show.html.erb within layouts/application (2.3ms) +Completed 200 OK in 3.6ms (Views: 3.1ms | ActiveRecord: 0.1ms) +  (1.8ms) rollback transaction +  (0.2ms) begin transaction +Started GET "/posts/new" for 127.0.0.1 at 2013-10-28 19:46:22 -0700 +Processing by PostsController#new as HTML +Completed 200 OK in 2.3ms (Views: 2.1ms | ActiveRecord: 0.0ms) +Started POST "/posts" for 127.0.0.1 at 2013-10-28 19:46:22 -0700 +Processing by PostsController#create as HTML + Parameters: {"utf8"=>"✓", "post"=>{"content"=>"First post"}, "commit"=>"Create Post"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "First post"], ["created_at", Tue, 29 Oct 2013 02:46:22 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:46:22 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 1.7ms (ActiveRecord: 0.4ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:46:22 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 4.7ms (Views: 3.6ms | ActiveRecord: 0.1ms) +Started GET "/posts" for 127.0.0.1 at 2013-10-28 19:46:22 -0700 +Processing by PostsController#index as HTML + Post Load (0.0ms) SELECT "posts".* FROM "posts"  +Completed 200 OK in 1.6ms (Views: 1.2ms | ActiveRecord: 0.0ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:46:22 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 3.1ms (Views: 2.4ms | ActiveRecord: 0.1ms) +Started POST "/comments" for 127.0.0.1 at 2013-10-28 19:46:22 -0700 +Processing by CommentsController#create as HTML + Parameters: {"utf8"=>"✓", "comment"=>{"post_id"=>"1", "content"=>"First comment"}, "commit"=>"Create Comment"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "First comment"], ["created_at", Tue, 29 Oct 2013 02:46:22 UTC +00:00], ["post_id", 1], ["updated_at", Tue, 29 Oct 2013 02:46:22 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 1.8ms (ActiveRecord: 0.4ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:46:22 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 2.7ms (Views: 2.3ms | ActiveRecord: 0.1ms) +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +Started GET "/posts/new" for 127.0.0.1 at 2013-10-28 19:46:22 -0700 +Processing by PostsController#new as HTML +Completed 200 OK in 2.3ms (Views: 2.0ms | ActiveRecord: 0.0ms) +Started POST "/posts" for 127.0.0.1 at 2013-10-28 19:46:22 -0700 +Processing by PostsController#create as HTML + Parameters: {"utf8"=>"✓", "post"=>{"content"=>"First post"}, "commit"=>"Create Post"} +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "First post"], ["created_at", Tue, 29 Oct 2013 02:46:22 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:46:22 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2.1ms (ActiveRecord: 0.4ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:46:22 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 3.7ms (Views: 2.9ms | ActiveRecord: 0.1ms) +Started GET "/posts" for 127.0.0.1 at 2013-10-28 19:46:22 -0700 +Processing by PostsController#index as HTML + Post Load (0.0ms) SELECT "posts".* FROM "posts"  +Completed 200 OK in 1.4ms (Views: 1.0ms | ActiveRecord: 0.0ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:46:22 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 3.4ms (Views: 2.7ms | ActiveRecord: 0.1ms) +Started POST "/comments" for 127.0.0.1 at 2013-10-28 19:46:22 -0700 +Processing by CommentsController#create as HTML + Parameters: {"utf8"=>"✓", "comment"=>{"post_id"=>"1", "content"=>"First comment"}, "commit"=>"Create Comment"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "First comment"], ["created_at", Tue, 29 Oct 2013 02:46:22 UTC +00:00], ["post_id", 1], ["updated_at", Tue, 29 Oct 2013 02:46:22 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2.4ms (ActiveRecord: 0.6ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:46:22 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 31.3ms (Views: 30.7ms | ActiveRecord: 0.1ms) +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +Started GET "/posts/new" for 127.0.0.1 at 2013-10-28 19:46:22 -0700 +Processing by PostsController#new as HTML +Completed 200 OK in 2.8ms (Views: 2.5ms | ActiveRecord: 0.0ms) +Started POST "/posts" for 127.0.0.1 at 2013-10-28 19:46:22 -0700 +Processing by PostsController#create as HTML + Parameters: {"utf8"=>"✓", "post"=>{"content"=>"First post"}, "commit"=>"Create Post"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "First post"], ["created_at", Tue, 29 Oct 2013 02:46:22 UTC +00:00], ["updated_at", Tue, 29 Oct 2013 02:46:22 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2.1ms (ActiveRecord: 0.4ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:46:22 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 3.4ms (Views: 2.7ms | ActiveRecord: 0.1ms) +Started GET "/posts" for 127.0.0.1 at 2013-10-28 19:46:22 -0700 +Processing by PostsController#index as HTML + Post Load (0.0ms) SELECT "posts".* FROM "posts"  +Completed 200 OK in 1.3ms (Views: 1.0ms | ActiveRecord: 0.0ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:46:22 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 2.7ms (Views: 2.2ms | ActiveRecord: 0.1ms) +Started POST "/comments" for 127.0.0.1 at 2013-10-28 19:46:22 -0700 +Processing by CommentsController#create as HTML + Parameters: {"utf8"=>"✓", "comment"=>{"post_id"=>"1", "content"=>"First comment"}, "commit"=>"Create Comment"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "First comment"], ["created_at", Tue, 29 Oct 2013 02:46:22 UTC +00:00], ["post_id", 1], ["updated_at", Tue, 29 Oct 2013 02:46:22 UTC +00:00]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = 1 LIMIT 1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 1.9ms (ActiveRecord: 0.4ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2013-10-28 19:46:22 -0700 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", "0000000001"]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = 1 +Completed 200 OK in 2.8ms (Views: 2.3ms | ActiveRecord: 0.1ms) +  (0.4ms) rollback transaction +  (0.3ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.3ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "users" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-02-07 19:14:54.394866"], ["id", 1], ["updated_at", "2015-02-07 19:14:54.394866"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "original"], ["created_at", "2015-02-07 19:14:54.403716"], ["updated_at", "2015-02-07 19:14:54.403716"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "original"], ["created_at", "2015-02-07 19:14:54.406755"], ["updated_at", "2015-02-07 19:14:54.406755"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.9ms) UPDATE "posts" SET "content" = ?, "updated_at" = ? WHERE "posts"."id" = 1 [["content", "new"], ["updated_at", "2015-02-07 19:14:54.408136"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "original"], ["created_at", "2015-02-07 19:14:54.411549"], ["updated_at", "2015-02-07 19:14:54.411549"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "one"], ["created_at", "2015-02-07 19:14:54.413862"], ["updated_at", "2015-02-07 19:14:54.413862"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "two"], ["created_at", "2015-02-07 19:14:54.414714"], ["updated_at", "2015-02-07 19:14:54.414714"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" IN (1, 2) +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +Started GET "/posts/new" for 127.0.0.1 at 2015-02-07 11:14:54 -0800 +Processing by PostsController#new as HTML + Rendered posts/new.html.erb within layouts/application (5.4ms) +Completed 200 OK in 15ms (Views: 15.1ms | ActiveRecord: 0.0ms) +Started POST "/posts" for 127.0.0.1 at 2015-02-07 11:14:54 -0800 +Processing by PostsController#create as HTML + Parameters: {"utf8"=>"✓", "post"=>{"content"=>"First post"}, "commit"=>"Create Post"} +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "First post"], ["created_at", "2015-02-07 19:14:54.444344"], ["updated_at", "2015-02-07 19:14:54.444344"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2015-02-07 11:14:54 -0800 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] + Comment Load (0.1ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ? [["post_id", 1]] + Rendered posts/show.html.erb within layouts/application (14.1ms) +Completed 200 OK in 16ms (Views: 15.2ms | ActiveRecord: 0.3ms) +Started GET "/posts" for 127.0.0.1 at 2015-02-07 11:14:54 -0800 +Processing by PostsController#index as HTML + Post Load (0.1ms) SELECT "posts".* FROM "posts" + Rendered posts/index.html.erb within layouts/application (1.2ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2015-02-07 11:14:54 -0800 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ? [["post_id", 1]] + Rendered posts/show.html.erb within layouts/application (1.9ms) +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms) +Started POST "/comments" for 127.0.0.1 at 2015-02-07 11:14:54 -0800 +Processing by CommentsController#create as HTML + Parameters: {"utf8"=>"✓", "comment"=>{"post_id"=>"1", "content"=>"First comment"}, "commit"=>"Create Comment"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "First comment"], ["created_at", "2015-02-07 19:14:54.475251"], ["post_id", 1], ["updated_at", "2015-02-07 19:14:54.475251"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2015-02-07 11:14:54 -0800 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ? [["post_id", 1]] + Rendered posts/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +Started GET "/posts/new" for 127.0.0.1 at 2015-02-07 11:14:54 -0800 +Processing by PostsController#new as HTML + Rendered posts/new.html.erb within layouts/application (1.8ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) +Started POST "/posts" for 127.0.0.1 at 2015-02-07 11:14:54 -0800 +Processing by PostsController#create as HTML + Parameters: {"utf8"=>"✓", "post"=>{"content"=>"First post"}, "commit"=>"Create Post"} +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "First post"], ["created_at", "2015-02-07 19:14:54.492492"], ["updated_at", "2015-02-07 19:14:54.492492"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2015-02-07 11:14:54 -0800 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ? [["post_id", 1]] + Rendered posts/show.html.erb within layouts/application (2.0ms) +Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms) +Started GET "/posts" for 127.0.0.1 at 2015-02-07 11:14:54 -0800 +Processing by PostsController#index as HTML + Post Load (0.1ms) SELECT "posts".* FROM "posts" + Rendered posts/index.html.erb within layouts/application (0.6ms) +Completed 200 OK in 1ms (Views: 0.9ms | ActiveRecord: 0.1ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2015-02-07 11:14:54 -0800 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ? [["post_id", 1]] + Rendered posts/show.html.erb within layouts/application (1.9ms) +Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms) +Started POST "/comments" for 127.0.0.1 at 2015-02-07 11:14:54 -0800 +Processing by CommentsController#create as HTML + Parameters: {"utf8"=>"✓", "comment"=>{"post_id"=>"1", "content"=>"First comment"}, "commit"=>"Create Comment"} +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "First comment"], ["created_at", "2015-02-07 19:14:54.508293"], ["post_id", 1], ["updated_at", "2015-02-07 19:14:54.508293"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2015-02-07 11:14:54 -0800 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ? [["post_id", 1]] + Rendered posts/show.html.erb within layouts/application (2.0ms) +Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms) +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +Started GET "/posts/new" for 127.0.0.1 at 2015-02-07 11:14:54 -0800 +Processing by PostsController#new as HTML + Rendered posts/new.html.erb within layouts/application (1.0ms) +Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) +Started POST "/posts" for 127.0.0.1 at 2015-02-07 11:14:54 -0800 +Processing by PostsController#create as HTML + Parameters: {"utf8"=>"✓", "post"=>{"content"=>"First post"}, "commit"=>"Create Post"} +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "First post"], ["created_at", "2015-02-07 19:14:54.522563"], ["updated_at", "2015-02-07 19:14:54.522563"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2015-02-07 11:14:54 -0800 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ? [["post_id", 1]] + Rendered posts/show.html.erb within layouts/application (1.8ms) +Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms) +Started GET "/posts" for 127.0.0.1 at 2015-02-07 11:14:54 -0800 +Processing by PostsController#index as HTML + Post Load (0.1ms) SELECT "posts".* FROM "posts" + Rendered posts/index.html.erb within layouts/application (1.1ms) +Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.1ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2015-02-07 11:14:54 -0800 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ? [["post_id", 1]] + Rendered posts/show.html.erb within layouts/application (2.2ms) +Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms) +Started POST "/comments" for 127.0.0.1 at 2015-02-07 11:14:54 -0800 +Processing by CommentsController#create as HTML + Parameters: {"utf8"=>"✓", "comment"=>{"post_id"=>"1", "content"=>"First comment"}, "commit"=>"Create Comment"} +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "First comment"], ["created_at", "2015-02-07 19:14:54.539215"], ["post_id", 1], ["updated_at", "2015-02-07 19:14:54.539215"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2015-02-07 11:14:54 -0800 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.1ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ? [["post_id", 1]] + Rendered posts/show.html.erb within layouts/application (2.1ms) +Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms) +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +Started GET "/posts/new" for 127.0.0.1 at 2015-02-07 11:14:54 -0800 +Processing by PostsController#new as HTML + Rendered posts/new.html.erb within layouts/application (1.0ms) +Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) +Started POST "/posts" for 127.0.0.1 at 2015-02-07 11:14:54 -0800 +Processing by PostsController#create as HTML + Parameters: {"utf8"=>"✓", "post"=>{"content"=>"First post"}, "commit"=>"Create Post"} +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "posts" ("content", "created_at", "updated_at") VALUES (?, ?, ?) [["content", "First post"], ["created_at", "2015-02-07 19:14:54.554294"], ["updated_at", "2015-02-07 19:14:54.554294"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2ms (ActiveRecord: 0.3ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2015-02-07 11:14:54 -0800 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ? [["post_id", 1]] + Rendered posts/show.html.erb within layouts/application (1.9ms) +Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms) +Started GET "/posts" for 127.0.0.1 at 2015-02-07 11:14:54 -0800 +Processing by PostsController#index as HTML + Post Load (0.1ms) SELECT "posts".* FROM "posts" + Rendered posts/index.html.erb within layouts/application (0.5ms) +Completed 200 OK in 1ms (Views: 0.8ms | ActiveRecord: 0.1ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2015-02-07 11:14:54 -0800 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ? [["post_id", 1]] + Rendered posts/show.html.erb within layouts/application (1.6ms) +Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.1ms) +Started POST "/comments" for 127.0.0.1 at 2015-02-07 11:14:54 -0800 +Processing by CommentsController#create as HTML + Parameters: {"utf8"=>"✓", "comment"=>{"post_id"=>"1", "content"=>"First comment"}, "commit"=>"Create Comment"} +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "comments" ("content", "created_at", "post_id", "updated_at") VALUES (?, ?, ?, ?) [["content", "First comment"], ["created_at", "2015-02-07 19:14:54.568214"], ["post_id", 1], ["updated_at", "2015-02-07 19:14:54.568214"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] +Redirected to http://www.example.com/posts/0195476820 +Completed 302 Found in 2ms (ActiveRecord: 0.4ms) +Started GET "/posts/0195476820" for 127.0.0.1 at 2015-02-07 11:14:54 -0800 +Processing by PostsController#show as HTML + Parameters: {"id"=>"0195476820"} + Post Load (0.0ms) SELECT "posts".* FROM "posts" WHERE "posts"."id" = ? LIMIT 1 [["id", 1]] + Comment Load (0.0ms) SELECT "comments".* FROM "comments" WHERE "comments"."post_id" = ? [["post_id", 1]] + Rendered posts/show.html.erb within layouts/application (1.9ms) +Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms) +  (0.6ms) rollback transaction diff --git a/spec/dummy_rails_3/public/404.html b/spec/dummy_rails_3/public/404.html new file mode 100644 index 0000000..9a48320 --- /dev/null +++ b/spec/dummy_rails_3/public/404.html @@ -0,0 +1,26 @@ + + + + The page you were looking for doesn't exist (404) + + + + + +
+

The page you were looking for doesn't exist.

+

You may have mistyped the address or the page may have moved.

+
+ + diff --git a/spec/dummy_rails_3/public/422.html b/spec/dummy_rails_3/public/422.html new file mode 100644 index 0000000..83660ab --- /dev/null +++ b/spec/dummy_rails_3/public/422.html @@ -0,0 +1,26 @@ + + + + The change you wanted was rejected (422) + + + + + +
+

The change you wanted was rejected.

+

Maybe you tried to change something you didn't have access to.

+
+ + diff --git a/spec/dummy_rails_3/public/500.html b/spec/dummy_rails_3/public/500.html new file mode 100644 index 0000000..f3648a0 --- /dev/null +++ b/spec/dummy_rails_3/public/500.html @@ -0,0 +1,25 @@ + + + + We're sorry, but something went wrong (500) + + + + + +
+

We're sorry, but something went wrong.

+
+ + diff --git a/spec/dummy_rails_3/public/favicon.ico b/spec/dummy_rails_3/public/favicon.ico new file mode 100644 index 0000000..e69de29 diff --git a/spec/dummy/script/rails b/spec/dummy_rails_3/script/rails similarity index 100% rename from spec/dummy/script/rails rename to spec/dummy_rails_3/script/rails diff --git a/spec/dummy_rails_3/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 b/spec/dummy_rails_3/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 new file mode 100644 index 0000000000000000000000000000000000000000..b070687eb55a04310331d24eac5afdc9d2a21f4d GIT binary patch literal 921 zcmZ`&O>5gg5DlTEMIn?zp@&|E&=PRn*pe+vZck}x!Ph#MLcy$dN7ll6SJ@rKHU0CQ zmD13U6nq%Z%)a;L@$~4)kEg5iL>dvo$-9$J*Q@hqA3CcHs;dx?PTn7V=9Y0=Err>% zf*Nk|)^pLehI^!)y_Ed8@1Dg4D|R^iO<#HEXu_)##zzX1KnH`N!C3!`5UHfIgqAjR zXzx(Y2*1HG{GD=_s*NqOqKLI;obSzBp3g&?@5279CsS&RjUD*SCT(3b`1?yP! zyn9WJw)~nkDeX~`^M^45R1a7@hFi4C`G-c4!ukI%fUBW3-B#N$23@lZrjf$Ni#^up z(Mp!wZ~U5Q{kO59=?Dce6={ z=rWs%!h@jRHgauL$HREUz5Vgk7^;py(?x(STJ-GnffW;>kLc2)Aod?D?gu|x9`x)G zq-(Jkog|}4k__Q_>G7sxpVeka@aB(XEmS&NF6v@hOIhb-Hp|npEb~08=5m>0H6-h7 lbBjLkhjN$4vYb@~CvUo_=fzyiRFx@2Os6u<3Q;ZNtDm63B#Zz6 literal 0 HcmV?d00001 diff --git a/spec/dummy_rails_3/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af b/spec/dummy_rails_3/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af new file mode 100644 index 0000000000000000000000000000000000000000..6d1f1cf3428166123cbc300ad720e194ddfed9b7 GIT binary patch literal 1004 zcmZ`&%Wl&^6h##(C{=|J%WkeJP!~jv(#uTx3_iQ(sjSk-q3eA<^p|!&8p1&AkNSTFX zM9o*kWf;P$cVx9v7<1C-<9k~L_kCWIrKmoG_qj2yft3w}7tS{B$(mS}%N3sg0q{i3 zXeYFryUpqme#cU$l0R;L}@f&mPrfv5Lgl|Q$&PRDgiDd?no)1 z0+?B@FvLM>XJAV=8dQgeOtK6fB-TpJRKW!hJiAPkK(>Y?N?M2gR4DUsi~%1D^#(qn zZ%OG}f$mN%$a;sM-=*u;dNLG%}xGX%JZ1~{{>)DSgB$mH4Y+E zAR1{H(SGV&q#_rZq3#S1P*|xKXj3i}ZpT`HUy7$;M()UhHVz11OG~IX5Ut`I%|k<~ zA=IWsssk;YXWN(pxIyC5X!KQ(9EdBeqsBS2^!m_9KZf`7&qeqfdZNAyGFpB#AET5Kg{r_a)cU z+wr9*zM4WfoJDa75=UQeM{$&3^LTn!N~oRJsvSJY#rFbli_fdSV*b~H20UmH(xq*7 znsVA9l=XY~c0|8Vs1VI+LHFltkz4%t9@o0pYtimWTLhVP#*x`g(9 F*Kdv9I>P_} literal 0 HcmV?d00001 diff --git a/spec/dummy_rails_3/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 b/spec/dummy_rails_3/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 new file mode 100644 index 0000000000000000000000000000000000000000..b070687eb55a04310331d24eac5afdc9d2a21f4d GIT binary patch literal 921 zcmZ`&O>5gg5DlTEMIn?zp@&|E&=PRn*pe+vZck}x!Ph#MLcy$dN7ll6SJ@rKHU0CQ zmD13U6nq%Z%)a;L@$~4)kEg5iL>dvo$-9$J*Q@hqA3CcHs;dx?PTn7V=9Y0=Err>% zf*Nk|)^pLehI^!)y_Ed8@1Dg4D|R^iO<#HEXu_)##zzX1KnH`N!C3!`5UHfIgqAjR zXzx(Y2*1HG{GD=_s*NqOqKLI;obSzBp3g&?@5279CsS&RjUD*SCT(3b`1?yP! zyn9WJw)~nkDeX~`^M^45R1a7@hFi4C`G-c4!ukI%fUBW3-B#N$23@lZrjf$Ni#^up z(Mp!wZ~U5Q{kO59=?Dce6={ z=rWs%!h@jRHgauL$HREUz5Vgk7^;py(?x(STJ-GnffW;>kLc2)Aod?D?gu|x9`x)G zq-(Jkog|}4k__Q_>G7sxpVeka@aB(XEmS&NF6v@hOIhb-Hp|npEb~08=5m>0H6-h7 lbBjLkhjN$4vYb@~CvUo_=fzyiRFx@2Os6u<3Q;ZNtDm63B#Zz6 literal 0 HcmV?d00001 diff --git a/spec/dummy_rails_3/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 b/spec/dummy_rails_3/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 new file mode 100644 index 0000000000000000000000000000000000000000..6d1f1cf3428166123cbc300ad720e194ddfed9b7 GIT binary patch literal 1004 zcmZ`&%Wl&^6h##(C{=|J%WkeJP!~jv(#uTx3_iQ(sjSk-q3eA<^p|!&8p1&AkNSTFX zM9o*kWf;P$cVx9v7<1C-<9k~L_kCWIrKmoG_qj2yft3w}7tS{B$(mS}%N3sg0q{i3 zXeYFryUpqme#cU$l0R;L}@f&mPrfv5Lgl|Q$&PRDgiDd?no)1 z0+?B@FvLM>XJAV=8dQgeOtK6fB-TpJRKW!hJiAPkK(>Y?N?M2gR4DUsi~%1D^#(qn zZ%OG}f$mN%$a;sM-=*u;dNLG%}xGX%JZ1~{{>)DSgB$mH4Y+E zAR1{H(SGV&q#_rZq3#S1P*|xKXj3i}ZpT`HUy7$;M()UhHVz11OG~IX5Ut`I%|k<~ zA=IWsssk;YXWN(pxIyC5X!KQ(9EdBeqsBS2^!m_9KZf`7&qeqfdZNAyGFpB#AET5Kg{r_a)cU z+wr9*zM4WfoJDa75=UQeM{$&3^LTn!N~oRJsvSJY#rFbli_fdSV*b~H20UmH(xq*7 znsVA9l=XY~c0|8Vs1VI+LHFltkz4%t9@o0pYtimWTLhVP#*x`g(9 F*Kdv9I>P_} literal 0 HcmV?d00001 diff --git a/spec/dummy_rails_3/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 b/spec/dummy_rails_3/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 new file mode 100644 index 0000000000000000000000000000000000000000..a1bbaac066e2e01a06af9cccabdc11eb2c2acd89 GIT binary patch literal 1291 zcmbVM-D?v;5HCg2n$m|-Kc3WWuoP<2+}`Cr5?@+GA#Y;yA_`$|cP_VZ**$kRjiLX% zvv<{2sS1S+*_O+nIFU&!)Y@k4AH_7Q_X9xz5|I57XX3r5BR3 zYF;x}VhQ`6u)40W=A>3<9G^Fh`@TW3CA3ZSwb9xQv2}*zgTkU&RuMEH8M3muamz)hFvx@{+72HcQ2;l>ox<>`G{mtY@jDbqJ6{rPpUz@U;uIA@43P z2~&bx`a{FJmadcvU!x`=4REK;rjG#mJrVcG6)2(2eOI1Bo4+>@U68t3Eu^x2A`6s( zG@L2#*gydW6i3M=9>~f{wZMoBR5%bQf|^zm7*POzsifT>|VLfp-0u$CA|I~M-B zG1fTszA>bYPZ>i6W(adlY);o+9bS49zvB0=`XpaDBHf843s7J%=?yA&4va_V2AISA ziGp>TXN?yPJF#5X(1`AKPlw%ZJ3P+>)R-Zf-OPU*szlIeoD^wLa9+e&7{xTpvN#U& z5g${?+o3u%@NI=ZlW11QZ^`USXWDzfVm!Sg#K+rW?Og9pdyj9|^5|b1*GjtGpK0%9 z7|>`ygF%?h=y(!DlOP)e=_CkR_rLE^CbBe01swqkQYO+EavmoTQXYjx5TzdfdiVUr z1N@!8`k$EdBi!U7OQ1+%K>_HPj}ux5N@FgvXiSrkC9T8#`4t$8e@v~3<1CBv6gNFc WicvaZk;p>(AB literal 0 HcmV?d00001 diff --git a/spec/dummy_rails_3/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 b/spec/dummy_rails_3/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 new file mode 100644 index 0000000000000000000000000000000000000000..75e06cb9e407cc76580de2f14c8e39b86bf50578 GIT binary patch literal 1372 zcmb7EO>fgc5JeR#C5S_X;DUf5qUwQ^tevE`%cX(3t!YUh391l>YP}!HB4;<)n^aN% z1wW48!>nB(NCkwHSnJuDH*em|_~yptW>T-Qj26ZE-g-Pr>i6E|hKZsOyo(RJ{_@6Q zQs2zXSTUNN�ZC$@$UQEJK@BM!)!6RDO5ey{1!9`H*M1F}8`GO-vwc(fmvov|zcK z;rTj%O=h$e+Me6x>+ry;VQw~ ztyaKA{+X14d{>C?jFYL*5B#Rmh#f%yV|d08yGv7)?|G_@gkTT1i9%sWJg} zLhW{zK`MZm=?qOAl(q&|c%wiKxR@w5feVGcO0#Uv1yDTOi70`J8Yan9VKF`xnYnm@ z250N)CA>l1hNW)J*G5WFg&>%nD2))vi>q8PYw~3SQPOJ!Z@@xmZu0A{TppAE*#V4% zSvDUljfE%)RAU-OwW~T8QshE2Q9Kl+Dk58!NDWBm)@56oIdFrCOQBI$L35zClrA;anyKT5Lb@`Xoa^QCfzzZH!`trQWLRFsy#weU!r5_mw2hWNyo%x7p#M4^ z4&#FcbbB9H+BGJhXfe|h^){>5egDSi%oPDwi;M37y-gNnB$^(B!3YjG0# ryH}FmJzt2tz%N}@!&Vr!(!g(HkZcES+Ty9t1vZE<&ktxCIojU=XDp=@ literal 0 HcmV?d00001 diff --git a/spec/lib/obfuscate_id_spec.rb b/spec/lib/obfuscate_id_spec.rb index b7b52ac..befb0d1 100644 --- a/spec/lib/obfuscate_id_spec.rb +++ b/spec/lib/obfuscate_id_spec.rb @@ -49,13 +49,20 @@ class Post < ActiveRecord::Base describe "for model with long name" do before do class SomeReallyAbsurdlyLongNamedClassThatYouWouldntHaveThoughtOf < ActiveRecord::Base + def self.columns() @columns ||= []; end + + def self.column(name, sql_type = nil, default = nil, null = true) + columns << ActiveRecord::ConnectionAdapters::Column.new(name.to_s, default, sql_type.to_s, null) + end + obfuscate_id end end - it 'compute default spin correctly' do - rec = SomeReallyAbsurdlyLongNamedClassThatYouWouldntHaveThoughtOf.new(id: 1) - expect { rec.to_param }.not_to raise_error - end + + it 'compute default spin correctly' do + rec = SomeReallyAbsurdlyLongNamedClassThatYouWouldntHaveThoughtOf.new(id: 1) + expect { rec.to_param }.not_to raise_error + end end end diff --git a/spec/models/post_spec.rb b/spec/models/post_spec.rb index 06d034e..89a9106 100644 --- a/spec/models/post_spec.rb +++ b/spec/models/post_spec.rb @@ -2,10 +2,10 @@ describe Post do describe "Reloading a record" do - subject { Post.create content: "original" } + subject(:post) { Post.create(content: "original") } it "does not throw an error" do - expect(lambda { subject.reload }).to_not raise_error + expect(lambda { post.reload }).to_not raise_error end it "reloads correctly" do diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index e29a407..6c666de 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -8,7 +8,6 @@ ENV["RAILS_ENV"] ||= 'test' require File.expand_path("../dummy/config/environment", __FILE__) require 'rspec/rails' - require 'rspec/autorun' require 'capybara/rails' # Requires supporting ruby files with custom matchers and macros, etc, From b51289359cf332d6d67f5a4c5467d605724702a0 Mon Sep 17 00:00:00 2001 From: Nathan Amick Date: Sat, 7 Feb 2015 15:00:26 -0800 Subject: [PATCH 2/3] Update for Rails v4.2.0 --- Gemfile.lock | 105 ++++++++++++++++++++++++------------------- lib/obfuscate_id.rb | 16 ++----- obfuscate_id.gemspec | 3 +- 3 files changed, 65 insertions(+), 59 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 65e833a..3f1faf7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,45 +2,49 @@ PATH remote: . specs: obfuscate_id (0.0.4) - activeresource (~> 4.0.0) - rails (~> 4.1.8) + rails (~> 4.2.0) scatter_swap (~> 0.0.3) GEM remote: http://rubygems.org/ specs: - actionmailer (4.1.8) - actionpack (= 4.1.8) - actionview (= 4.1.8) + actionmailer (4.2.0) + actionpack (= 4.2.0) + actionview (= 4.2.0) + activejob (= 4.2.0) mail (~> 2.5, >= 2.5.4) - actionpack (4.1.8) - actionview (= 4.1.8) - activesupport (= 4.1.8) - rack (~> 1.5.2) + rails-dom-testing (~> 1.0, >= 1.0.5) + actionpack (4.2.0) + actionview (= 4.2.0) + activesupport (= 4.2.0) + rack (~> 1.6.0) rack-test (~> 0.6.2) - actionview (4.1.8) - activesupport (= 4.1.8) + rails-dom-testing (~> 1.0, >= 1.0.5) + rails-html-sanitizer (~> 1.0, >= 1.0.1) + actionview (4.2.0) + activesupport (= 4.2.0) builder (~> 3.1) erubis (~> 2.7.0) - activemodel (4.1.8) - activesupport (= 4.1.8) + rails-dom-testing (~> 1.0, >= 1.0.5) + rails-html-sanitizer (~> 1.0, >= 1.0.1) + activejob (4.2.0) + activesupport (= 4.2.0) + globalid (>= 0.3.0) + activemodel (4.2.0) + activesupport (= 4.2.0) builder (~> 3.1) - activerecord (4.1.8) - activemodel (= 4.1.8) - activesupport (= 4.1.8) - arel (~> 5.0.0) - activeresource (4.0.0) - activemodel (~> 4.0) - activesupport (~> 4.0) - rails-observers (~> 0.1.1) - activesupport (4.1.8) - i18n (~> 0.6, >= 0.6.9) + activerecord (4.2.0) + activemodel (= 4.2.0) + activesupport (= 4.2.0) + arel (~> 6.0) + activesupport (4.2.0) + i18n (~> 0.7) json (~> 1.7, >= 1.7.7) minitest (~> 5.1) - thread_safe (~> 0.1) + thread_safe (~> 0.3, >= 0.3.4) tzinfo (~> 1.1) addressable (2.3.6) - arel (5.0.1.20140414130214) + arel (6.0.0) builder (3.2.2) capybara (2.4.4) mime-types (>= 1.16) @@ -57,6 +61,8 @@ GEM erubis (2.7.0) ffi (1.9.6) formatador (0.2.5) + globalid (0.3.2) + activesupport (>= 4.1.0) guard (2.10.2) formatador (>= 0.2.4) listen (~> 2.7) @@ -75,21 +81,23 @@ GEM spork (>= 0.8.4) hike (1.2.3) hitimes (1.2.2) - i18n (0.6.11) - json (1.8.1) + i18n (0.7.0) + json (1.8.2) launchy (2.4.3) addressable (~> 2.3) listen (2.8.3) celluloid (>= 0.15.2) rb-fsevent (>= 0.9.3) rb-inotify (>= 0.9) + loofah (2.0.1) + nokogiri (>= 1.5.9) lumberjack (1.0.9) mail (2.6.3) mime-types (>= 1.16, < 3) method_source (0.8.2) mime-types (2.4.3) mini_portile (0.6.1) - minitest (5.5.0) + minitest (5.5.1) multi_json (1.10.1) nokogiri (1.6.5) mini_portile (~> 0.6.0) @@ -97,24 +105,31 @@ GEM coderay (~> 1.1.0) method_source (~> 0.8.1) slop (~> 3.4) - rack (1.5.2) - rack-test (0.6.2) + rack (1.6.0) + rack-test (0.6.3) rack (>= 1.0) - rails (4.1.8) - actionmailer (= 4.1.8) - actionpack (= 4.1.8) - actionview (= 4.1.8) - activemodel (= 4.1.8) - activerecord (= 4.1.8) - activesupport (= 4.1.8) + rails (4.2.0) + actionmailer (= 4.2.0) + actionpack (= 4.2.0) + actionview (= 4.2.0) + activejob (= 4.2.0) + activemodel (= 4.2.0) + activerecord (= 4.2.0) + activesupport (= 4.2.0) bundler (>= 1.3.0, < 2.0) - railties (= 4.1.8) - sprockets-rails (~> 2.0) - rails-observers (0.1.2) - activemodel (~> 4.0) - railties (4.1.8) - actionpack (= 4.1.8) - activesupport (= 4.1.8) + railties (= 4.2.0) + sprockets-rails + rails-deprecated_sanitizer (1.0.3) + activesupport (>= 4.2.0.alpha) + rails-dom-testing (1.0.5) + activesupport (>= 4.2.0.beta, < 5.0) + nokogiri (~> 1.6.0) + rails-deprecated_sanitizer (>= 1.0.1) + rails-html-sanitizer (1.0.1) + loofah (~> 2.0) + railties (4.2.0) + actionpack (= 4.2.0) + activesupport (= 4.2.0) rake (>= 0.8.7) thor (>= 0.18.1, < 2.0) rake (10.4.2) @@ -149,7 +164,7 @@ GEM multi_json (~> 1.0) rack (~> 1.0) tilt (~> 1.1, != 1.3.0) - sprockets-rails (2.2.2) + sprockets-rails (2.2.4) actionpack (>= 3.0) activesupport (>= 3.0) sprockets (>= 2.8, < 4.0) diff --git a/lib/obfuscate_id.rb b/lib/obfuscate_id.rb index 8685ce9..397d6c5 100644 --- a/lib/obfuscate_id.rb +++ b/lib/obfuscate_id.rb @@ -59,15 +59,11 @@ def to_param # As ActiveRecord::Persistence#reload uses self.id # reload without deobfuscating - # def reload(options = nil) - # options = (options || {}).merge(:no_obfuscated_id => true) - # super(options) - # end - def reload(options = nil) - options = (options || {}).merge(:no_obfuscated_id => true) + options = (options || {}).merge(no_obfuscated_id: true) clear_aggregation_cache clear_association_cache + fresh_object = if options && options[:lock] self.class.unscoped { self.class.lock(options[:lock]).find(id, options) } @@ -75,12 +71,8 @@ def reload(options = nil) self.class.unscoped { self.class.find(id, options) } end - @attributes.update(fresh_object.instance_variable_get('@attributes')) - - @column_types = self.class.column_types - @column_types_override = fresh_object.instance_variable_get('@column_types_override') - @attributes_cache = {} - @new_record = false + @attributes = fresh_object.instance_variable_get('@attributes') + @new_record = false self end diff --git a/obfuscate_id.gemspec b/obfuscate_id.gemspec index e7c219d..f675277 100644 --- a/obfuscate_id.gemspec +++ b/obfuscate_id.gemspec @@ -17,8 +17,7 @@ Gem::Specification.new do |s| s.files = Dir["{app,config,db,lib}/**/*"] + ["MIT-LICENSE", "Rakefile", "README.md"] s.add_dependency "scatter_swap", "~> 0.0.3" - s.add_dependency "rails", "~> 4.1.8" - s.add_dependency "activeresource", "~> 4.0.0" + s.add_dependency "rails", "~> 4.2.0" s.add_development_dependency "sqlite3" s.add_development_dependency "rspec-rails" From 127515f033bc8de778fbb82fa3b51e8e185e2001 Mon Sep 17 00:00:00 2001 From: Nathan Amick Date: Sat, 7 Feb 2015 16:00:14 -0800 Subject: [PATCH 3/3] Add sqlite db for testing --- .gitignore | 1 - .travis.yml | 3 +-- README.md | 18 +++++++++--------- spec/dummy/.gitignore | 2 +- spec/dummy/db/test.sqlite3 | Bin 0 -> 28672 bytes 5 files changed, 11 insertions(+), 13 deletions(-) create mode 100644 spec/dummy/db/test.sqlite3 diff --git a/.gitignore b/.gitignore index 9b66bc8..dea279d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ .bundle/ log/*.log pkg/ -spec/dummy/db/*.sqlite3 spec/dummy/log/*.log spec/dummy/tmp/ spec/dummy/.sass-cache diff --git a/.travis.yml b/.travis.yml index ec4c2b1..6f1fd69 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,4 @@ language: ruby rvm: - 1.9.3 -before_script: - - cd spec/dummy && bundle exec rake db:test:load && cd - + - 2.1.1 diff --git a/README.md b/README.md index 5e94f39..ee258f0 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ obfuscate_id turns a URL like this: into something like: http://example.com/users/2356513904 - + Sequential ActiveRecord ids become non-sequential, random looking, numeric ids. # post 7000 @@ -22,7 +22,7 @@ Sequential ActiveRecord ids become non-sequential, random looking, numeric ids. http://example.com/posts/7107163820 # post 7002 http://example.com/posts/3296163828 - + ## Why would you want this? If your site is scaling well, you might not want to leak that you are getting 50 new posts a minute. @@ -52,7 +52,7 @@ Run bundler. ## Usage -In your model, add a single line. +In your model, add a single line. class Post < ActiveRecord::Base obfuscate_id @@ -81,6 +81,12 @@ ActiveRecord reverses this obfuscated id back to the plain id before building th * This is not security. obfuscate_id was created to lightly mask record id numbers for the casual user. If you need to really secure your database ids (hint, you probably don't), you need to use real encryption like AES. * To properly generate obfuscated urls, make sure you trigger the model's `to_param` method by passing in the whole object rather than just the id; do this: `post_path(@post)` not this: `post_path(@post.id)`. +## Versions + +This is tested with Rails 4.2.0. For other versions of Rails, please see [the releases](https://github.com/namick/obfuscate_id/releases). + +If you are trying to get it to work with a different version of rails that is not tested, let me know in [the issues](https://github.com/namick/obfuscate_id/issues) + ## Development To run the tests, first clone the repo and run bundler: @@ -89,12 +95,6 @@ To run the tests, first clone the repo and run bundler: cd obfuscate_id bundle install -Change to the dummy rails app and load the test database - - cd spec/dummy - bundle exec rake db:test:load - cd - - Run the tests bundle exec rspec spec diff --git a/spec/dummy/.gitignore b/spec/dummy/.gitignore index 050c9d9..9c6a60a 100644 --- a/spec/dummy/.gitignore +++ b/spec/dummy/.gitignore @@ -8,7 +8,7 @@ /.bundle # Ignore the default SQLite database. -/db/*.sqlite3 +/db/development.sqlite3 /db/*.sqlite3-journal # Ignore all logfiles and tempfiles. diff --git a/spec/dummy/db/test.sqlite3 b/spec/dummy/db/test.sqlite3 new file mode 100644 index 0000000000000000000000000000000000000000..31f3ff06abcb6105ee0883c4f2f8e2f5f97790ba GIT binary patch literal 28672 zcmeI#QESss6bJC6X`3l_se$z3UoJr?~|ZxuYO-`7d{qtXn+O*2tWV=5P$## zAOHafK;VxBrgC0ZUzWsa$@Pc)!^C$_CVUV&N8Gaqo_iSBkvsOog@C->G3#BE^{mEz z&twg2$9%`M>t5Gb%VOHXBpTb$PI(a07c_m8lhqO>B1iVYh%Y?55XjFm=+<91&EHJU zPVK-svIAzdy3Fb|oBDJuE32w1o;^%HHwh_??{!-Zi(c9@Et-2a{}$7H+vD2&!!&jRZby7Lup^BPsTa8(r|{%B9;Czi^pSL# z-CB~}@i>gaT|g^YD$<9;*%F{dCFTkO%SF|BWNA z&8g@|g8&2|009U<00Izz00bZa0SG`~i3L#qFY)GLX%K(_1Rwwb2tWV=5P$##AOL}x z0P27I3J`z*1Rwwb2tWV=5P$##AOL~o7eM{L{CkWQLI45~fB*y_009U<00Izz00iRt zUs65`%7yZkE@%*d00bZa0SG_<0uX=z1Rwwb2;6FcqLk5%a>Xdqsa&f*tv)Gcu0*QF zvr4rn{){{~45L=7+@&>1%DJF?QO=c%TfIOe2LT8`00Izz00bZa0SG_<0ucD`1s+Jc Wn6Cb%R46I`GxsI^&g`jK{r>}OMmER* literal 0 HcmV?d00001