action_extension 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +39 -0
  4. data/Rakefile +28 -0
  5. data/lib/action_extension.rb +8 -0
  6. data/lib/action_extension/generators/presenter_generator.rb +10 -0
  7. data/lib/action_extension/generators/service_generator.rb +9 -0
  8. data/lib/action_extension/presenters/base.rb +26 -0
  9. data/lib/action_extension/presenters/helper.rb +12 -0
  10. data/lib/action_extension/services/base.rb +12 -0
  11. data/lib/action_extension/templates/presenter_template.rb +4 -0
  12. data/lib/action_extension/templates/service_template.rb +2 -0
  13. data/lib/action_extension/version.rb +3 -0
  14. data/lib/tasks/action_extension_tasks.rake +4 -0
  15. data/test/action_extension_test.rb +7 -0
  16. data/test/dummy/README.rdoc +28 -0
  17. data/test/dummy/Rakefile +6 -0
  18. data/test/dummy/app/assets/javascripts/application.js +13 -0
  19. data/test/dummy/app/assets/javascripts/tests.js +2 -0
  20. data/test/dummy/app/assets/stylesheets/application.css +15 -0
  21. data/test/dummy/app/assets/stylesheets/tests.css +4 -0
  22. data/test/dummy/app/controllers/application_controller.rb +5 -0
  23. data/test/dummy/app/controllers/tests_controller.rb +5 -0
  24. data/test/dummy/app/helpers/application_helper.rb +2 -0
  25. data/test/dummy/app/helpers/tests_helper.rb +2 -0
  26. data/test/dummy/app/models/user.rb +2 -0
  27. data/test/dummy/app/presenters/user_presenter.rb +8 -0
  28. data/test/dummy/app/services/fuck_service.rb +2 -0
  29. data/test/dummy/app/services/lfsd_service.rb +2 -0
  30. data/test/dummy/app/services/lolo_service.rb +2 -0
  31. data/test/dummy/app/services/shit_service.rb +0 -0
  32. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  33. data/test/dummy/app/views/tests/index.html.erb +3 -0
  34. data/test/dummy/bin/bundle +3 -0
  35. data/test/dummy/bin/rails +4 -0
  36. data/test/dummy/bin/rake +4 -0
  37. data/test/dummy/bin/setup +29 -0
  38. data/test/dummy/config.ru +4 -0
  39. data/test/dummy/config/application.rb +26 -0
  40. data/test/dummy/config/boot.rb +5 -0
  41. data/test/dummy/config/database.yml +25 -0
  42. data/test/dummy/config/environment.rb +5 -0
  43. data/test/dummy/config/environments/development.rb +41 -0
  44. data/test/dummy/config/environments/production.rb +79 -0
  45. data/test/dummy/config/environments/test.rb +42 -0
  46. data/test/dummy/config/initializers/assets.rb +11 -0
  47. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  48. data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
  49. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  50. data/test/dummy/config/initializers/inflections.rb +16 -0
  51. data/test/dummy/config/initializers/mime_types.rb +4 -0
  52. data/test/dummy/config/initializers/session_store.rb +3 -0
  53. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  54. data/test/dummy/config/locales/en.yml +23 -0
  55. data/test/dummy/config/routes.rb +60 -0
  56. data/test/dummy/config/secrets.yml +22 -0
  57. data/test/dummy/db/development.sqlite3 +0 -0
  58. data/test/dummy/db/migrate/20150725123854_create_users.rb +9 -0
  59. data/test/dummy/db/schema.rb +22 -0
  60. data/test/dummy/log/development.log +477 -0
  61. data/test/dummy/public/404.html +67 -0
  62. data/test/dummy/public/422.html +67 -0
  63. data/test/dummy/public/500.html +66 -0
  64. data/test/dummy/public/favicon.ico +0 -0
  65. data/test/dummy/test/controllers/tests_controller_test.rb +9 -0
  66. data/test/dummy/test/fixtures/users.yml +7 -0
  67. data/test/dummy/test/models/user_test.rb +7 -0
  68. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/092hvqGdf8xulErXgTOzq9b69xlSH6K7rl-yt0LhqCg.cache +1 -0
  69. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/0O8y7G0oub6NBlJ3F-KKGkw7ii41_nG3QV4byX2CdIk.cache +0 -0
  70. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/A7qX07WoAvE38u9e7QxXcENq9uAzji_X6dUlpf5nHZk.cache +2 -0
  71. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/AB85IyMEkJpC2kSLq-q-3gy9beQvUHsG2wA3V1a9Bx4.cache +2 -0
  72. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/BMmr-kzbReY0spbQlHpAq0bEo4dXxtHQ7HBD8Du2Bok.cache +2 -0
  73. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/F1GqrZMdp2_oBHFr_c1mIJZMxinjPAOic98_ck2ev7o.cache +1 -0
  74. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/FTyZj3rkumlqaU8oeK9Q7nAy9DVKW9a60MGUVP-sSMs.cache +2 -0
  75. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/GNXZB90HD6nLCnFG-FuCOkImplBMiLjq9p9DyEIUFVA.cache +0 -0
  76. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/JAuqedQzTA68vGlxqIS3TIH8S7Zy9XdHa2NA7PEUGN8.cache +1 -0
  77. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/K1QRXCoVsMVV1zdalrTGVJusL3duOhYyaFNv3WsoeB4.cache +0 -0
  78. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/L2MX51mFHzsLwqIQsuweY0ymXc6prnHZ_kX-2shyT_E.cache +1 -0
  79. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/MhSp1zPNXH3jGq4_wbiJmmXbnw3WIcszLC_F51kkthw.cache +1 -0
  80. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/RllXMh83za8lyKZUftl2r3R6EqYsMMTIhuoQ12moSLc.cache +2 -0
  81. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/VYBW6yaUcMw4na5d9WcHz_oz4DkvOtbPg9vY31h7I5E.cache +1 -0
  82. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/WVskSXvQwV3PMBVjRBEoGwrpTlPHQFgALCZaMDRVS58.cache +0 -0
  83. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/_PGDqhF4BCvgqj-LqUOCrM6uz45GsoAK0aNA-6MDEvc.cache +2 -0
  84. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/aIdgI7a4RSJ9bXZJ-sT2ZaUByJX77SiJoeYXA9j1uwA.cache +0 -0
  85. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/bxCXcV6DTWHyk2kpyJlikTB6nUbAuoWOW2XZKPNBFLo.cache +2 -0
  86. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/i3-opF1hHypapPjbtFwGXu86Jf5XectqTy3_GgNFgrA.cache +1 -0
  87. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/l2GWE04mG4lyQQLDnjYXYiz5sypW3Hm9CzINjSdGywc.cache +1 -0
  88. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/m7wK2N1BiPmgDjZrhoGdFBou090LTwIAygCzLiBB42M.cache +0 -0
  89. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/v0X_jH3zVbKGSyuKpKBz774Mv013h8NLevASjxJLQMo.cache +1 -0
  90. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/xY-5Qphfu3q1zQuNxSX0NEmsmhr5L92zCT6QhpkCVpw.cache +2 -0
  91. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/yTGCn3sk-PcjNVtM5N8_1zNhOhan3sAOxMyh5DcLzdQ.cache +1 -0
  92. data/test/test_helper.rb +19 -0
  93. metadata +227 -0
@@ -0,0 +1,5 @@
1
+ # Set up gems listed in the Gemfile.
2
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
3
+
4
+ require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
5
+ $LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
@@ -0,0 +1,25 @@
1
+ # SQLite version 3.x
2
+ # gem install sqlite3
3
+ #
4
+ # Ensure the SQLite 3 gem is defined in your Gemfile
5
+ # gem 'sqlite3'
6
+ #
7
+ default: &default
8
+ adapter: sqlite3
9
+ pool: 5
10
+ timeout: 5000
11
+
12
+ development:
13
+ <<: *default
14
+ database: db/development.sqlite3
15
+
16
+ # Warning: The database defined as "test" will be erased and
17
+ # re-generated from your development database when you run "rake".
18
+ # Do not set this db to the same as development or production.
19
+ test:
20
+ <<: *default
21
+ database: db/test.sqlite3
22
+
23
+ production:
24
+ <<: *default
25
+ database: db/production.sqlite3
@@ -0,0 +1,5 @@
1
+ # Load the Rails application.
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the Rails application.
5
+ Rails.application.initialize!
@@ -0,0 +1,41 @@
1
+ Rails.application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # In the development environment your application's code is reloaded on
5
+ # every request. This slows down response time but is perfect for development
6
+ # since you don't have to restart the web server when you make code changes.
7
+ config.cache_classes = false
8
+
9
+ # Do not eager load code on boot.
10
+ config.eager_load = false
11
+
12
+ # Show full error reports and disable caching.
13
+ config.consider_all_requests_local = true
14
+ config.action_controller.perform_caching = false
15
+
16
+ # Don't care if the mailer can't send.
17
+ config.action_mailer.raise_delivery_errors = false
18
+
19
+ # Print deprecation notices to the Rails logger.
20
+ config.active_support.deprecation = :log
21
+
22
+ # Raise an error on page load if there are pending migrations.
23
+ config.active_record.migration_error = :page_load
24
+
25
+ # Debug mode disables concatenation and preprocessing of assets.
26
+ # This option may cause significant delays in view rendering with a large
27
+ # number of complex assets.
28
+ config.assets.debug = true
29
+
30
+ # Asset digests allow you to set far-future HTTP expiration dates on all assets,
31
+ # yet still be able to expire them through the digest params.
32
+ config.assets.digest = true
33
+
34
+ # Adds additional error checking when serving assets at runtime.
35
+ # Checks for improperly declared sprockets dependencies.
36
+ # Raises helpful error messages.
37
+ config.assets.raise_runtime_errors = true
38
+
39
+ # Raises error for missing translations
40
+ # config.action_view.raise_on_missing_translations = true
41
+ end
@@ -0,0 +1,79 @@
1
+ Rails.application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # Code is not reloaded between requests.
5
+ config.cache_classes = true
6
+
7
+ # Eager load code on boot. This eager loads most of Rails and
8
+ # your application in memory, allowing both threaded web servers
9
+ # and those relying on copy on write to perform better.
10
+ # Rake tasks automatically ignore this option for performance.
11
+ config.eager_load = true
12
+
13
+ # Full error reports are disabled and caching is turned on.
14
+ config.consider_all_requests_local = false
15
+ config.action_controller.perform_caching = true
16
+
17
+ # Enable Rack::Cache to put a simple HTTP cache in front of your application
18
+ # Add `rack-cache` to your Gemfile before enabling this.
19
+ # For large-scale production use, consider using a caching reverse proxy like
20
+ # NGINX, varnish or squid.
21
+ # config.action_dispatch.rack_cache = true
22
+
23
+ # Disable serving static files from the `/public` folder by default since
24
+ # Apache or NGINX already handles this.
25
+ config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
26
+
27
+ # Compress JavaScripts and CSS.
28
+ config.assets.js_compressor = :uglifier
29
+ # config.assets.css_compressor = :sass
30
+
31
+ # Do not fallback to assets pipeline if a precompiled asset is missed.
32
+ config.assets.compile = false
33
+
34
+ # Asset digests allow you to set far-future HTTP expiration dates on all assets,
35
+ # yet still be able to expire them through the digest params.
36
+ config.assets.digest = true
37
+
38
+ # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
39
+
40
+ # Specifies the header that your server uses for sending files.
41
+ # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
42
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
43
+
44
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
45
+ # config.force_ssl = true
46
+
47
+ # Use the lowest log level to ensure availability of diagnostic information
48
+ # when problems arise.
49
+ config.log_level = :debug
50
+
51
+ # Prepend all log lines with the following tags.
52
+ # config.log_tags = [ :subdomain, :uuid ]
53
+
54
+ # Use a different logger for distributed setups.
55
+ # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
56
+
57
+ # Use a different cache store in production.
58
+ # config.cache_store = :mem_cache_store
59
+
60
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server.
61
+ # config.action_controller.asset_host = 'http://assets.example.com'
62
+
63
+ # Ignore bad email addresses and do not raise email delivery errors.
64
+ # Set this to true and configure the email server for immediate delivery to raise delivery errors.
65
+ # config.action_mailer.raise_delivery_errors = false
66
+
67
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
68
+ # the I18n.default_locale when a translation cannot be found).
69
+ config.i18n.fallbacks = true
70
+
71
+ # Send deprecation notices to registered listeners.
72
+ config.active_support.deprecation = :notify
73
+
74
+ # Use default logging formatter so that PID and timestamp are not suppressed.
75
+ config.log_formatter = ::Logger::Formatter.new
76
+
77
+ # Do not dump schema after migrations.
78
+ config.active_record.dump_schema_after_migration = false
79
+ end
@@ -0,0 +1,42 @@
1
+ Rails.application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Do not eager load code on boot. This avoids loading your whole application
11
+ # just for the purpose of running a single test. If you are using a tool that
12
+ # preloads Rails for running tests, you may have to set it to true.
13
+ config.eager_load = false
14
+
15
+ # Configure static file server for tests with Cache-Control for performance.
16
+ config.serve_static_files = true
17
+ config.static_cache_control = 'public, max-age=3600'
18
+
19
+ # Show full error reports and disable caching.
20
+ config.consider_all_requests_local = true
21
+ config.action_controller.perform_caching = false
22
+
23
+ # Raise exceptions instead of rendering exception templates.
24
+ config.action_dispatch.show_exceptions = false
25
+
26
+ # Disable request forgery protection in test environment.
27
+ config.action_controller.allow_forgery_protection = false
28
+
29
+ # Tell Action Mailer not to deliver emails to the real world.
30
+ # The :test delivery method accumulates sent emails in the
31
+ # ActionMailer::Base.deliveries array.
32
+ config.action_mailer.delivery_method = :test
33
+
34
+ # Randomize the order test cases are executed.
35
+ config.active_support.test_order = :random
36
+
37
+ # Print deprecation notices to the stderr.
38
+ config.active_support.deprecation = :stderr
39
+
40
+ # Raises error for missing translations
41
+ # config.action_view.raise_on_missing_translations = true
42
+ end
@@ -0,0 +1,11 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Version of your assets, change this if you want to expire all your assets.
4
+ Rails.application.config.assets.version = '1.0'
5
+
6
+ # Add additional assets to the asset load path
7
+ # Rails.application.config.assets.paths << Emoji.images_path
8
+
9
+ # Precompile additional assets.
10
+ # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
11
+ # Rails.application.config.assets.precompile += %w( search.js )
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.session_store :cookie_store, key: '_dummy_session'
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,23 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"
@@ -0,0 +1,60 @@
1
+ Rails.application.routes.draw do
2
+ get 'tests/index'
3
+
4
+ root 'tests#index'
5
+ resources :tests
6
+ # The priority is based upon order of creation: first created -> highest priority.
7
+ # See how all your routes lay out with "rake routes".
8
+
9
+ # You can have the root of your site routed with "root"
10
+ # root 'welcome#index'
11
+
12
+ # Example of regular route:
13
+ # get 'products/:id' => 'catalog#view'
14
+
15
+ # Example of named route that can be invoked with purchase_url(id: product.id)
16
+ # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
17
+
18
+ # Example resource route (maps HTTP verbs to controller actions automatically):
19
+ # resources :products
20
+
21
+ # Example resource route with options:
22
+ # resources :products do
23
+ # member do
24
+ # get 'short'
25
+ # post 'toggle'
26
+ # end
27
+ #
28
+ # collection do
29
+ # get 'sold'
30
+ # end
31
+ # end
32
+
33
+ # Example resource route with sub-resources:
34
+ # resources :products do
35
+ # resources :comments, :sales
36
+ # resource :seller
37
+ # end
38
+
39
+ # Example resource route with more complex sub-resources:
40
+ # resources :products do
41
+ # resources :comments
42
+ # resources :sales do
43
+ # get 'recent', on: :collection
44
+ # end
45
+ # end
46
+
47
+ # Example resource route with concerns:
48
+ # concern :toggleable do
49
+ # post 'toggle'
50
+ # end
51
+ # resources :posts, concerns: :toggleable
52
+ # resources :photos, concerns: :toggleable
53
+
54
+ # Example resource route within a namespace:
55
+ # namespace :admin do
56
+ # # Directs /admin/products/* to Admin::ProductsController
57
+ # # (app/controllers/admin/products_controller.rb)
58
+ # resources :products
59
+ # end
60
+ end
@@ -0,0 +1,22 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: 71f2cb5332830c5b762bc95a37c289729d36cc061582dffe8e332b1b065fe09b292bae0fb3ab9af8da1d731dafb97cda43ba2382217e84700ea24e09b6844380
15
+
16
+ test:
17
+ secret_key_base: 64c9f05f178721ec6d9e5502c58811c79917411ea3d014579368af6cd1076cf8ed6ceb8035e148855ff9df47194cc8bf0e92938344f9bd00137135dbc2bfe794
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -0,0 +1,9 @@
1
+ class CreateUsers < ActiveRecord::Migration
2
+ def change
3
+ create_table :users do |t|
4
+ t.string :first_name
5
+
6
+ t.timestamps null: false
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,22 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20150725123854) do
15
+
16
+ create_table "users", force: :cascade do |t|
17
+ t.string "first_name"
18
+ t.datetime "created_at", null: false
19
+ t.datetime "updated_at", null: false
20
+ end
21
+
22
+ end
@@ -0,0 +1,477 @@
1
+
2
+
3
+ Started GET "/" for 127.0.0.1 at 2015-07-25 15:25:05 +0300
4
+ Processing by TestsController#index as HTML
5
+ Rendered tests/index.html.erb within layouts/application (17.5ms)
6
+ Completed 500 Internal Server Error in 42ms (ActiveRecord: 0.0ms)
7
+
8
+ ActionView::Template::Error (undefined local variable or method `present' for #<#<Class:0x007ff15fb7c700>:0x007ff15fb7f810>):
9
+ 1: <h1>Tests#index</h1>
10
+ 2: <%= present %>
11
+ 3: <p>Find me in app/views/tests/index.html.erb</p>
12
+ app/views/tests/index.html.erb:2:in `_app_views_tests_index_html_erb__801921452969200204_70337322802120'
13
+
14
+
15
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_source.erb (8.2ms)
16
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (9.7ms)
17
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (21.5ms)
18
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (106.3ms)
19
+
20
+
21
+ Started GET "/" for 127.0.0.1 at 2015-07-25 15:25:57 +0300
22
+ Processing by TestsController#index as HTML
23
+ Rendered tests/index.html.erb within layouts/application (8.6ms)
24
+ Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.0ms)
25
+
26
+ ActionView::Template::Error (undefined local variable or method `present' for #<#<Class:0x007ff15fb7c700>:0x007ff15b456d30>):
27
+ 1: <h1>Tests#index</h1>
28
+ 2: <%= present %>
29
+ 3: <p>Find me in app/views/tests/index.html.erb</p>
30
+ app/views/tests/index.html.erb:2:in `_app_views_tests_index_html_erb__801921452969200204_70337322802120'
31
+
32
+
33
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_source.erb (10.6ms)
34
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.3ms)
35
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms)
36
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (55.6ms)
37
+
38
+
39
+ Started GET "/" for 127.0.0.1 at 2015-07-25 15:26:17 +0300
40
+ Processing by TestsController#index as HTML
41
+ Rendered tests/index.html.erb within layouts/application (6.8ms)
42
+ Completed 500 Internal Server Error in 18ms (ActiveRecord: 0.0ms)
43
+
44
+ ActionView::Template::Error (wrong number of arguments (0 for 1..2)):
45
+ 1: <h1>Tests#index</h1>
46
+ 2: <%= present %>
47
+ 3: <p>Find me in app/views/tests/index.html.erb</p>
48
+ app/views/tests/index.html.erb:2:in `_app_views_tests_index_html_erb___2658634603181319599_70106588818820'
49
+
50
+
51
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_source.erb (13.9ms)
52
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.6ms)
53
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (13.9ms)
54
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (64.6ms)
55
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
56
+  (0.1ms) select sqlite_version(*)
57
+  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
58
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
59
+ Migrating to CreateUsers (20150725123854)
60
+  (0.1ms) begin transaction
61
+  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "first_name" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
62
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150725123854"]]
63
+  (0.8ms) commit transaction
64
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
65
+
66
+
67
+ Started GET "/" for 127.0.0.1 at 2015-07-25 15:40:55 +0300
68
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
69
+ Processing by TestsController#index as HTML
70
+ Rendered tests/index.html.erb within layouts/application (3.0ms)
71
+ Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.0ms)
72
+
73
+ ActionView::Template::Error (wrong number of arguments (0 for 1..2)):
74
+ 1: <h1>Tests#index</h1>
75
+ 2: <%= present %>
76
+ 3: <p>Find me in app/views/tests/index.html.erb</p>
77
+ app/views/tests/index.html.erb:2:in `_app_views_tests_index_html_erb___3715861828046467579_70309333843480'
78
+
79
+
80
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_source.erb (15.3ms)
81
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.8ms)
82
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (25.2ms)
83
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (84.6ms)
84
+
85
+
86
+ Started GET "/" for 127.0.0.1 at 2015-07-25 15:41:11 +0300
87
+ Processing by TestsController#index as HTML
88
+ Rendered tests/index.html.erb within layouts/application (0.6ms)
89
+ User Load (0.6ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
90
+ Completed 500 Internal Server Error in 201ms (ActiveRecord: 1.2ms)
91
+
92
+ ActionView::Template::Error (uninitialized constant NilClassPresenter):
93
+ 9: <body>
94
+ 10: <% u = User.first %>
95
+ 11:
96
+ 12: <% present u do |f| %>
97
+ 13: <%=f.vk %>
98
+ 14: <% end %>
99
+ 15: <%= yield %>
100
+ app/views/layouts/application.html.erb:12:in `_app_views_layouts_application_html_erb___874781894119337822_70309333820980'
101
+
102
+
103
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.1ms)
104
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.3ms)
105
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (2.0ms)
106
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (48.7ms)
107
+
108
+
109
+ Started GET "/" for 127.0.0.1 at 2015-07-25 15:43:19 +0300
110
+ Processing by TestsController#index as HTML
111
+ Rendered tests/index.html.erb within layouts/application (0.0ms)
112
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
113
+ Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.2ms)
114
+
115
+ ActionView::Template::Error (uninitialized constant NilClassPresenter):
116
+ 9: <body>
117
+ 10: <% u = User.first %>
118
+ 11:
119
+ 12: <%= present u do |f| %>
120
+ 13: <%=f.vk %>
121
+ 14: <% end %>
122
+ 15: <%= yield %>
123
+ app/views/layouts/application.html.erb:12:in `_app_views_layouts_application_html_erb___874781894119337822_70309350093200'
124
+
125
+
126
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_source.erb (7.4ms)
127
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.1ms)
128
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.4ms)
129
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (51.9ms)
130
+
131
+
132
+ Started GET "/" for 127.0.0.1 at 2015-07-25 15:45:03 +0300
133
+ Processing by TestsController#index as HTML
134
+ User Load (0.6ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
135
+ Rendered tests/index.html.erb within layouts/application (2.7ms)
136
+ Completed 500 Internal Server Error in 20ms (ActiveRecord: 1.4ms)
137
+
138
+ ActionView::Template::Error (uninitialized constant NilClassPresenter):
139
+ 1: <%= present @user do |presenter| %>
140
+ 2: <%= presenter.vk %>
141
+ 3: <% end %>
142
+ app/views/tests/index.html.erb:1:in `_app_views_tests_index_html_erb___3715861828046467579_70309334761280'
143
+
144
+
145
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_source.erb (10.8ms)
146
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.7ms)
147
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (2.0ms)
148
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (52.8ms)
149
+
150
+
151
+ Started GET "/" for 127.0.0.1 at 2015-07-25 15:47:07 +0300
152
+ Processing by TestsController#index as HTML
153
+ User Load (0.1ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
154
+ Rendered tests/index.html.erb within layouts/application (1.2ms)
155
+ Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.6ms)
156
+
157
+ ActionView::Template::Error (uninitialized constant NilClassPresenter):
158
+ 1: <%= present @user do |presenter| %>
159
+ 2: <%= presenter.vk %>
160
+ 3: <% end %>
161
+ app/views/tests/index.html.erb:1:in `_app_views_tests_index_html_erb___3715861828046467579_70309334761280'
162
+
163
+
164
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_source.erb (7.1ms)
165
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.2ms)
166
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms)
167
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (45.7ms)
168
+
169
+
170
+ Started GET "/" for 127.0.0.1 at 2015-07-25 15:47:34 +0300
171
+ Processing by TestsController#index as HTML
172
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
173
+ Rendered tests/index.html.erb within layouts/application (1.2ms)
174
+ Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.2ms)
175
+
176
+ ActionView::Template::Error (uninitialized constant NilClassPresenter):
177
+ 1: <%= present @user do |presenter| %>
178
+ 2: <%= presenter.vk %>
179
+ 3: <% end %>
180
+ app/views/tests/index.html.erb:1:in `_app_views_tests_index_html_erb___3715861828046467579_70309334761280'
181
+
182
+
183
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.4ms)
184
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.6ms)
185
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms)
186
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (43.0ms)
187
+
188
+
189
+ Started GET "/" for 127.0.0.1 at 2015-07-25 15:48:45 +0300
190
+ Processing by TestsController#index as HTML
191
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
192
+ Rendered tests/index.html.erb within layouts/application (2.4ms)
193
+ Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.2ms)
194
+
195
+ ActionView::Template::Error (undefined method `present' for UserPresenter:Class):
196
+ 1: <%= present @user, UserPresenter do |presenter| %>
197
+ 2: <%= presenter.vk %>
198
+ 3: <% end %>
199
+ app/presenters/user_presenter.rb:2:in `<class:UserPresenter>'
200
+ app/presenters/user_presenter.rb:1:in `<top (required)>'
201
+ app/views/tests/index.html.erb:1:in `_app_views_tests_index_html_erb___3715861828046467579_70309350830500'
202
+
203
+
204
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.4ms)
205
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.0ms)
206
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms)
207
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (43.6ms)
208
+
209
+
210
+ Started GET "/" for 127.0.0.1 at 2015-07-25 15:50:49 +0300
211
+ Processing by TestsController#index as HTML
212
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
213
+ Rendered tests/index.html.erb within layouts/application (1.9ms)
214
+ Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.2ms)
215
+
216
+ ActionView::Template::Error (undefined method `pry' for #<Binding:0x007fe4527ba528>):
217
+ 1: <% binding.pry %>
218
+ 2: <%= present @user, UserPresenter do |presenter| %>
219
+ 3: <%= presenter.vk %>
220
+ 4: <% end %>
221
+ app/views/tests/index.html.erb:1:in `_app_views_tests_index_html_erb___3715861828046467579_70309306636740'
222
+
223
+
224
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.1ms)
225
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.0ms)
226
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.4ms)
227
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (53.3ms)
228
+
229
+
230
+ Started GET "/" for 127.0.0.1 at 2015-07-25 15:51:10 +0300
231
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
232
+ Processing by TestsController#index as HTML
233
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
234
+ Rendered tests/index.html.erb within layouts/application (17069.1ms)
235
+ Completed 500 Internal Server Error in 17082ms (ActiveRecord: 0.8ms)
236
+
237
+ ActionView::Template::Error (undefined method `present' for UserPresenter:Class):
238
+ 1: <% binding.pry %>
239
+ 2: <%= present @user, UserPresenter do |presenter| %>
240
+ 3: <%= presenter.vk %>
241
+ 4: <% end %>
242
+ app/presenters/user_presenter.rb:2:in `<class:UserPresenter>'
243
+ app/presenters/user_presenter.rb:1:in `<top (required)>'
244
+ app/views/tests/index.html.erb:2:in `_app_views_tests_index_html_erb___3113984280470750145_70168037316760'
245
+
246
+
247
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.8ms)
248
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (3.0ms)
249
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (13.9ms)
250
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (56.6ms)
251
+  (0.1ms) begin transaction
252
+ SQL (1.0ms) INSERT INTO "users" ("first_name", "created_at", "updated_at") VALUES (?, ?, ?) [["first_name", "Denis"], ["created_at", "2015-07-25 12:51:59.620826"], ["updated_at", "2015-07-25 12:51:59.620826"]]
253
+  (1.0ms) commit transaction
254
+
255
+
256
+ Started GET "/" for 127.0.0.1 at 2015-07-25 15:52:02 +0300
257
+ Processing by TestsController#index as HTML
258
+ User Load (0.4ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
259
+ Rendered tests/index.html.erb within layouts/application (6538.3ms)
260
+ Completed 500 Internal Server Error in 6547ms (ActiveRecord: 0.4ms)
261
+
262
+ ActionView::Template::Error (undefined method `present' for UserPresenter:Class):
263
+ 1: <% binding.pry %>
264
+ 2: <%= present @user, UserPresenter do |presenter| %>
265
+ 3: <%= presenter.vk %>
266
+ 4: <% end %>
267
+ app/presenters/user_presenter.rb:2:in `<class:UserPresenter>'
268
+ app/presenters/user_presenter.rb:1:in `<top (required)>'
269
+ app/views/tests/index.html.erb:2:in `_app_views_tests_index_html_erb___3113984280470750145_70168037316760'
270
+
271
+
272
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.8ms)
273
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.5ms)
274
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms)
275
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (40.3ms)
276
+
277
+
278
+ Started GET "/" for 127.0.0.1 at 2015-07-25 15:52:21 +0300
279
+ Processing by TestsController#index as HTML
280
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
281
+ Rendered tests/index.html.erb within layouts/application (26770.3ms)
282
+ Completed 500 Internal Server Error in 26775ms (ActiveRecord: 0.2ms)
283
+
284
+ ActionView::Template::Error (undefined method `present' for UserPresenter:Class):
285
+ 1: <% binding.pry %>
286
+ 2: <%= present @user, UserPresenter do |presenter| %>
287
+ 3: <%= presenter.vk %>
288
+ 4: <% end %>
289
+ app/presenters/user_presenter.rb:2:in `<class:UserPresenter>'
290
+ app/presenters/user_presenter.rb:1:in `<top (required)>'
291
+ app/views/tests/index.html.erb:2:in `_app_views_tests_index_html_erb___3113984280470750145_70168037316760'
292
+
293
+
294
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.9ms)
295
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.6ms)
296
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.0ms)
297
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (43.4ms)
298
+
299
+
300
+ Started GET "/" for 127.0.0.1 at 2015-07-25 15:52:49 +0300
301
+ Processing by TestsController#index as HTML
302
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
303
+ Rendered tests/index.html.erb within layouts/application (1658.0ms)
304
+ Completed 500 Internal Server Error in 1663ms (ActiveRecord: 0.2ms)
305
+
306
+ ActionView::Template::Error (undefined method `present' for UserPresenter:Class):
307
+ 1: <% binding.pry %>
308
+ 2: <%= present @user, UserPresenter do |presenter| %>
309
+ 3: <%= presenter.vk %>
310
+ 4: <% end %>
311
+ app/presenters/user_presenter.rb:2:in `<class:UserPresenter>'
312
+ app/presenters/user_presenter.rb:1:in `<top (required)>'
313
+ app/views/tests/index.html.erb:2:in `_app_views_tests_index_html_erb___3113984280470750145_70168037316760'
314
+
315
+
316
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_source.erb (12.9ms)
317
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.4ms)
318
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.5ms)
319
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (49.5ms)
320
+
321
+
322
+ Started GET "/" for 127.0.0.1 at 2015-07-25 15:53:29 +0300
323
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
324
+ Processing by TestsController#index as HTML
325
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
326
+ Rendered tests/index.html.erb within layouts/application (3.4ms)
327
+ Completed 200 OK in 221ms (Views: 213.6ms | ActiveRecord: 0.6ms)
328
+
329
+
330
+ Started GET "/assets/tests.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2015-07-25 15:53:30 +0300
331
+
332
+
333
+ Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2015-07-25 15:53:30 +0300
334
+
335
+
336
+ Started GET "/assets/tests.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2015-07-25 15:53:30 +0300
337
+
338
+
339
+ Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2015-07-25 15:53:30 +0300
340
+
341
+
342
+ Started GET "/VK" for 127.0.0.1 at 2015-07-25 15:53:32 +0300
343
+
344
+ ActionController::RoutingError (No route matches [GET] "/VK"):
345
+ actionpack (4.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
346
+ actionpack (4.2.3) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
347
+ railties (4.2.3) lib/rails/rack/logger.rb:38:in `call_app'
348
+ railties (4.2.3) lib/rails/rack/logger.rb:20:in `block in call'
349
+ activesupport (4.2.3) lib/active_support/tagged_logging.rb:68:in `block in tagged'
350
+ activesupport (4.2.3) lib/active_support/tagged_logging.rb:26:in `tagged'
351
+ activesupport (4.2.3) lib/active_support/tagged_logging.rb:68:in `tagged'
352
+ railties (4.2.3) lib/rails/rack/logger.rb:20:in `call'
353
+ actionpack (4.2.3) lib/action_dispatch/middleware/request_id.rb:21:in `call'
354
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
355
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
356
+ activesupport (4.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
357
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
358
+ actionpack (4.2.3) lib/action_dispatch/middleware/static.rb:116:in `call'
359
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
360
+ railties (4.2.3) lib/rails/engine.rb:518:in `call'
361
+ railties (4.2.3) lib/rails/application.rb:165:in `call'
362
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
363
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
364
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
365
+ /Users/home/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
366
+ /Users/home/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
367
+ /Users/home/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
368
+
369
+
370
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.0ms)
371
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.5ms)
372
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/routes/_table.html.erb (11.7ms)
373
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.9ms)
374
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (74.2ms)
375
+
376
+
377
+ Started GET "/" for 127.0.0.1 at 2015-07-25 15:53:43 +0300
378
+ Processing by TestsController#index as HTML
379
+ User Load (0.3ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
380
+ Rendered tests/index.html.erb within layouts/application (0.5ms)
381
+ Completed 200 OK in 16ms (Views: 14.1ms | ActiveRecord: 0.3ms)
382
+
383
+
384
+ Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2015-07-25 15:53:43 +0300
385
+
386
+
387
+ Started GET "/assets/tests.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2015-07-25 15:53:43 +0300
388
+
389
+
390
+ Started GET "/assets/tests.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2015-07-25 15:53:43 +0300
391
+
392
+
393
+ Started GET "/assets/application.self-8f06a73c35179188914ab50e057157639fce1401c1cdca640ac9cec33746fc5b.js?body=1" for 127.0.0.1 at 2015-07-25 15:53:43 +0300
394
+
395
+
396
+ Started GET "/VK" for 127.0.0.1 at 2015-07-25 15:53:44 +0300
397
+
398
+ ActionController::RoutingError (No route matches [GET] "/VK"):
399
+ actionpack (4.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
400
+ actionpack (4.2.3) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
401
+ railties (4.2.3) lib/rails/rack/logger.rb:38:in `call_app'
402
+ railties (4.2.3) lib/rails/rack/logger.rb:20:in `block in call'
403
+ activesupport (4.2.3) lib/active_support/tagged_logging.rb:68:in `block in tagged'
404
+ activesupport (4.2.3) lib/active_support/tagged_logging.rb:26:in `tagged'
405
+ activesupport (4.2.3) lib/active_support/tagged_logging.rb:68:in `tagged'
406
+ railties (4.2.3) lib/rails/rack/logger.rb:20:in `call'
407
+ actionpack (4.2.3) lib/action_dispatch/middleware/request_id.rb:21:in `call'
408
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
409
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
410
+ activesupport (4.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
411
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
412
+ actionpack (4.2.3) lib/action_dispatch/middleware/static.rb:116:in `call'
413
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
414
+ railties (4.2.3) lib/rails/engine.rb:518:in `call'
415
+ railties (4.2.3) lib/rails/application.rb:165:in `call'
416
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
417
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
418
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
419
+ /Users/home/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
420
+ /Users/home/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
421
+ /Users/home/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
422
+
423
+
424
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (1.5ms)
425
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.2ms)
426
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/routes/_table.html.erb (1.3ms)
427
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.2ms)
428
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (56.5ms)
429
+
430
+
431
+ Started GET "/VK" for 127.0.0.1 at 2015-07-25 15:54:07 +0300
432
+
433
+ ActionController::RoutingError (No route matches [GET] "/VK"):
434
+ actionpack (4.2.3) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
435
+ actionpack (4.2.3) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
436
+ railties (4.2.3) lib/rails/rack/logger.rb:38:in `call_app'
437
+ railties (4.2.3) lib/rails/rack/logger.rb:20:in `block in call'
438
+ activesupport (4.2.3) lib/active_support/tagged_logging.rb:68:in `block in tagged'
439
+ activesupport (4.2.3) lib/active_support/tagged_logging.rb:26:in `tagged'
440
+ activesupport (4.2.3) lib/active_support/tagged_logging.rb:68:in `tagged'
441
+ railties (4.2.3) lib/rails/rack/logger.rb:20:in `call'
442
+ actionpack (4.2.3) lib/action_dispatch/middleware/request_id.rb:21:in `call'
443
+ rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
444
+ rack (1.6.4) lib/rack/runtime.rb:18:in `call'
445
+ activesupport (4.2.3) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
446
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
447
+ actionpack (4.2.3) lib/action_dispatch/middleware/static.rb:116:in `call'
448
+ rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
449
+ railties (4.2.3) lib/rails/engine.rb:518:in `call'
450
+ railties (4.2.3) lib/rails/application.rb:165:in `call'
451
+ rack (1.6.4) lib/rack/lock.rb:17:in `call'
452
+ rack (1.6.4) lib/rack/content_length.rb:15:in `call'
453
+ rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
454
+ /Users/home/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
455
+ /Users/home/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
456
+ /Users/home/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
457
+
458
+
459
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (4.2ms)
460
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/routes/_route.html.erb (2.2ms)
461
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/routes/_table.html.erb (4.1ms)
462
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (4.7ms)
463
+ Rendered /Users/home/.rvm/gems/ruby-2.2.1/gems/actionpack-4.2.3/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (73.8ms)
464
+
465
+
466
+ Started GET "/" for 127.0.0.1 at 2015-07-25 15:54:12 +0300
467
+ Processing by TestsController#index as HTML
468
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
469
+ Rendered tests/index.html.erb within layouts/application (2.3ms)
470
+ Completed 200 OK in 49ms (Views: 35.4ms | ActiveRecord: 1.2ms)
471
+
472
+
473
+ Started GET "/" for 127.0.0.1 at 2015-07-25 15:54:44 +0300
474
+ Processing by TestsController#index as HTML
475
+ User Load (0.2ms) SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
476
+ Rendered tests/index.html.erb within layouts/application (1.3ms)
477
+ Completed 200 OK in 33ms (Views: 31.1ms | ActiveRecord: 0.2ms)