chaplin-on-rails 0.7.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. data/MIT-LICENSE +20 -0
  2. data/README.md +42 -0
  3. data/Rakefile +38 -0
  4. data/lib/chaplin-on-rails.rb +2 -0
  5. data/lib/chaplin-on-rails/engine.rb +6 -0
  6. data/lib/chaplin-on-rails/version.rb +3 -0
  7. data/lib/generators/chaplin/helpers.rb +94 -0
  8. data/lib/generators/chaplin/install/install_generator.rb +68 -0
  9. data/lib/generators/chaplin/install/templates/app_template.js.coffee +65 -0
  10. data/lib/generators/chaplin/install/templates/application.js.coffee +13 -0
  11. data/lib/generators/chaplin/install/templates/javascripts/controllers/base/controller.js.coffee +8 -0
  12. data/lib/generators/chaplin/install/templates/javascripts/lib/support.js.coffee +19 -0
  13. data/lib/generators/chaplin/install/templates/javascripts/lib/utils.js.coffee +18 -0
  14. data/lib/generators/chaplin/install/templates/javascripts/lib/view_helper.js.coffee +16 -0
  15. data/lib/generators/chaplin/install/templates/javascripts/models/base/collection.js.coffee +9 -0
  16. data/lib/generators/chaplin/install/templates/javascripts/models/base/model.js.coffee +9 -0
  17. data/lib/generators/chaplin/install/templates/javascripts/routes.js.coffee +9 -0
  18. data/lib/generators/chaplin/install/templates/javascripts/views/base/collection_view.coffee +11 -0
  19. data/lib/generators/chaplin/install/templates/javascripts/views/base/view.coffee +15 -0
  20. data/lib/generators/chaplin/install/templates/javascripts/views/layout.js.coffee +8 -0
  21. data/lib/generators/chaplin/install/templates/requirejs.yml +6 -0
  22. data/test/chaplin-on-rails_test.rb +19 -0
  23. data/test/dummy/README.rdoc +261 -0
  24. data/test/dummy/Rakefile +7 -0
  25. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  26. data/test/dummy/app/controllers/application_controller.rb +3 -0
  27. data/test/dummy/app/controllers/home_controller.rb +5 -0
  28. data/test/dummy/app/helpers/application_helper.rb +2 -0
  29. data/test/dummy/app/helpers/home_helper.rb +2 -0
  30. data/test/dummy/app/views/home/index.html.erb +1 -0
  31. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  32. data/test/dummy/config.ru +4 -0
  33. data/test/dummy/config/application.rb +59 -0
  34. data/test/dummy/config/boot.rb +10 -0
  35. data/test/dummy/config/database.yml +25 -0
  36. data/test/dummy/config/environment.rb +5 -0
  37. data/test/dummy/config/environments/development.rb +37 -0
  38. data/test/dummy/config/environments/production.rb +67 -0
  39. data/test/dummy/config/environments/test.rb +37 -0
  40. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  41. data/test/dummy/config/initializers/inflections.rb +15 -0
  42. data/test/dummy/config/initializers/mime_types.rb +5 -0
  43. data/test/dummy/config/initializers/secret_token.rb +7 -0
  44. data/test/dummy/config/initializers/session_store.rb +8 -0
  45. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  46. data/test/dummy/config/locales/en.yml +5 -0
  47. data/test/dummy/config/routes.rb +58 -0
  48. data/test/dummy/db/development.sqlite3 +0 -0
  49. data/test/dummy/db/test.sqlite3 +0 -0
  50. data/test/dummy/log/development.log +186 -0
  51. data/test/dummy/log/test.log +35 -0
  52. data/test/dummy/public/404.html +26 -0
  53. data/test/dummy/public/422.html +26 -0
  54. data/test/dummy/public/500.html +25 -0
  55. data/test/dummy/public/favicon.ico +0 -0
  56. data/test/dummy/script/rails +6 -0
  57. data/test/dummy/tmp/cache/assets/C75/D70/sprockets%2F1781f0919424c1d3014e066757a81eaa +0 -0
  58. data/test/dummy/tmp/cache/assets/C80/150/sprockets%2F0d3881005b0646df783d5c24683d34f5 +0 -0
  59. data/test/dummy/tmp/cache/assets/C89/4B0/sprockets%2F1f6245087eeb4c854a03a4644c964579 +0 -0
  60. data/test/dummy/tmp/cache/assets/C8D/980/sprockets%2F7184f95c8e290cbc2451767559f01d08 +0 -0
  61. data/test/dummy/tmp/cache/assets/CA8/130/sprockets%2F695a47c24c7804e27afc2208426ae133 +0 -0
  62. data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  63. data/test/dummy/tmp/cache/assets/CDE/EC0/sprockets%2F32bce1758d7525013970c7bb7d77aa28 +0 -0
  64. data/test/dummy/tmp/cache/assets/CEB/750/sprockets%2F72f4d157b237c37ed75f49bd217824c7 +0 -0
  65. data/test/dummy/tmp/cache/assets/CF6/290/sprockets%2F95f8b25659fb7a430d68b27a5f72f666 +0 -0
  66. data/test/dummy/tmp/cache/assets/CF9/7C0/sprockets%2F40fc2f3d2a468a00e463f1d313cb1683 +0 -0
  67. data/test/dummy/tmp/cache/assets/D08/A30/sprockets%2F1310a2826dcae357ba9f383e86b638a1 +0 -0
  68. data/test/dummy/tmp/cache/assets/D09/100/sprockets%2F4dc073204163e0850bf7fcb55ff8b552 +0 -0
  69. data/test/dummy/tmp/cache/assets/D0A/A40/sprockets%2F09e4e8ba330b24f9f87a63a910d422f3 +0 -0
  70. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  71. data/test/dummy/tmp/cache/assets/D38/B80/sprockets%2F42c6d981cbd6ae6061c7088a2321a8ed +0 -0
  72. data/test/dummy/tmp/cache/assets/D3E/070/sprockets%2F45f1913b6d3645a3d166ff4ff250e4cc +0 -0
  73. data/test/dummy/tmp/cache/assets/D4E/D00/sprockets%2F1a6846f0a837ae2524e2f9ec89e6ef43 +0 -0
  74. data/test/dummy/tmp/cache/assets/D57/BC0/sprockets%2F50db33dbb1258913cb2fbd562ab1294b +0 -0
  75. data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  76. data/test/dummy/tmp/cache/assets/D63/C90/sprockets%2Fb70150e50cbcbc59c55ffb3c53a35575 +0 -0
  77. data/test/dummy/tmp/cache/assets/D6F/C70/sprockets%2F667a4890bf4c03f50b452d1db278fcfe +0 -0
  78. data/test/dummy/tmp/cache/assets/D79/470/sprockets%2F1cb96b862f7c7497af494aa19d0cbd55 +0 -0
  79. data/test/dummy/tmp/cache/assets/D7A/930/sprockets%2F3964cc67ad46beb69c444bb51f486e2f +0 -0
  80. data/test/dummy/tmp/cache/assets/D8B/B40/sprockets%2F11b945abcf62b02fcfb34f52f6aa1481 +0 -0
  81. data/test/dummy/tmp/cache/assets/D92/990/sprockets%2F4b34320d2682dc0fd9b107f3ef2cae7d +0 -0
  82. data/test/dummy/tmp/cache/assets/D98/8B0/sprockets%2Fedbef6e0d0a4742346cf479f2c522eb0 +0 -0
  83. data/test/dummy/tmp/cache/assets/DC8/010/sprockets%2F34cce381cfe1aa4be1ca560f118dd998 +0 -0
  84. data/test/dummy/tmp/cache/assets/DCD/ED0/sprockets%2F77ca908f86a8be3506de6fe60b1e0baa +0 -0
  85. data/test/dummy/tmp/cache/assets/DCE/890/sprockets%2Fd54185fb144acd9d1d15ed0e4ebf9f44 +0 -0
  86. data/test/dummy/tmp/cache/assets/DCE/D00/sprockets%2Fed31b7ea3cfb14d43a87c89deb0390f7 +0 -0
  87. data/test/dummy/tmp/cache/assets/DCF/610/sprockets%2Fda58bc8db5dd9cb124a85c507d591fd2 +0 -0
  88. data/test/dummy/tmp/cache/assets/E11/4E0/sprockets%2F86e145a39f85cceeaffdff91ebb61449 +0 -0
  89. data/test/test_helper.rb +7 -0
  90. data/vendor/assets/javascripts/backbone.js +1497 -0
  91. data/vendor/assets/javascripts/chaplin.js.coffee +2377 -0
  92. data/vendor/assets/javascripts/underscore.js +1222 -0
  93. metadata +292 -0
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3
+
4
+ if File.exist?(gemfile)
5
+ ENV['BUNDLE_GEMFILE'] = gemfile
6
+ require 'bundler'
7
+ Bundler.setup
8
+ end
9
+
10
+ $:.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
+ development:
7
+ adapter: sqlite3
8
+ database: db/development.sqlite3
9
+ pool: 5
10
+ timeout: 5000
11
+
12
+ # Warning: The database defined as "test" will be erased and
13
+ # re-generated from your development database when you run "rake".
14
+ # Do not set this db to the same as development or production.
15
+ test:
16
+ adapter: sqlite3
17
+ database: db/test.sqlite3
18
+ pool: 5
19
+ timeout: 5000
20
+
21
+ production:
22
+ adapter: sqlite3
23
+ database: db/production.sqlite3
24
+ pool: 5
25
+ timeout: 5000
@@ -0,0 +1,5 @@
1
+ # Load the rails application
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the rails application
5
+ Dummy::Application.initialize!
@@ -0,0 +1,37 @@
1
+ Dummy::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
+ # Log error messages when you accidentally call methods on nil.
10
+ config.whiny_nils = true
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
+ # Only use best-standards-support built into browsers
23
+ config.action_dispatch.best_standards_support = :builtin
24
+
25
+ # Raise exception on mass assignment protection for Active Record models
26
+ config.active_record.mass_assignment_sanitizer = :strict
27
+
28
+ # Log the query plan for queries taking more than this (works
29
+ # with SQLite, MySQL, and PostgreSQL)
30
+ config.active_record.auto_explain_threshold_in_seconds = 0.5
31
+
32
+ # Do not compress assets
33
+ config.assets.compress = false
34
+
35
+ # Expands the lines which load the assets
36
+ config.assets.debug = true
37
+ end
@@ -0,0 +1,67 @@
1
+ Dummy::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
+ # Full error reports are disabled and caching is turned on
8
+ config.consider_all_requests_local = false
9
+ config.action_controller.perform_caching = true
10
+
11
+ # Disable Rails's static asset server (Apache or nginx will already do this)
12
+ config.serve_static_assets = false
13
+
14
+ # Compress JavaScripts and CSS
15
+ config.assets.compress = true
16
+
17
+ # Don't fallback to assets pipeline if a precompiled asset is missed
18
+ config.assets.compile = false
19
+
20
+ # Generate digests for assets URLs
21
+ config.assets.digest = true
22
+
23
+ # Defaults to nil and saved in location specified by config.assets.prefix
24
+ # config.assets.manifest = YOUR_PATH
25
+
26
+ # Specifies the header that your server uses for sending files
27
+ # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
28
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
29
+
30
+ # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
31
+ # config.force_ssl = true
32
+
33
+ # See everything in the log (default is :info)
34
+ # config.log_level = :debug
35
+
36
+ # Prepend all log lines with the following tags
37
+ # config.log_tags = [ :subdomain, :uuid ]
38
+
39
+ # Use a different logger for distributed setups
40
+ # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
41
+
42
+ # Use a different cache store in production
43
+ # config.cache_store = :mem_cache_store
44
+
45
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server
46
+ # config.action_controller.asset_host = "http://assets.example.com"
47
+
48
+ # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
49
+ # config.assets.precompile += %w( search.js )
50
+
51
+ # Disable delivery errors, bad email addresses will be ignored
52
+ # config.action_mailer.raise_delivery_errors = false
53
+
54
+ # Enable threaded mode
55
+ # config.threadsafe!
56
+
57
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
58
+ # the I18n.default_locale when a translation can not be found)
59
+ config.i18n.fallbacks = true
60
+
61
+ # Send deprecation notices to registered listeners
62
+ config.active_support.deprecation = :notify
63
+
64
+ # Log the query plan for queries taking more than this (works
65
+ # with SQLite, MySQL, and PostgreSQL)
66
+ # config.active_record.auto_explain_threshold_in_seconds = 0.5
67
+ end
@@ -0,0 +1,37 @@
1
+ Dummy::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
+ # Configure static asset server for tests with Cache-Control for performance
11
+ config.serve_static_assets = true
12
+ config.static_cache_control = "public, max-age=3600"
13
+
14
+ # Log error messages when you accidentally call methods on nil
15
+ config.whiny_nils = true
16
+
17
+ # Show full error reports and disable caching
18
+ config.consider_all_requests_local = true
19
+ config.action_controller.perform_caching = false
20
+
21
+ # Raise exceptions instead of rendering exception templates
22
+ config.action_dispatch.show_exceptions = false
23
+
24
+ # Disable request forgery protection in test environment
25
+ config.action_controller.allow_forgery_protection = false
26
+
27
+ # Tell Action Mailer not to deliver emails to the real world.
28
+ # The :test delivery method accumulates sent emails in the
29
+ # ActionMailer::Base.deliveries array.
30
+ config.action_mailer.delivery_method = :test
31
+
32
+ # Raise exception on mass assignment protection for Active Record models
33
+ config.active_record.mass_assignment_sanitizer = :strict
34
+
35
+ # Print deprecation notices to the stderr
36
+ config.active_support.deprecation = :stderr
37
+ end
@@ -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,15 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format
4
+ # (all these examples are active by default):
5
+ # ActiveSupport::Inflector.inflections do |inflect|
6
+ # inflect.plural /^(ox)$/i, '\1en'
7
+ # inflect.singular /^(ox)en/i, '\1'
8
+ # inflect.irregular 'person', 'people'
9
+ # inflect.uncountable %w( fish sheep )
10
+ # end
11
+ #
12
+ # These inflection rules are supported but not enabled by default:
13
+ # ActiveSupport::Inflector.inflections do |inflect|
14
+ # inflect.acronym 'RESTful'
15
+ # end
@@ -0,0 +1,5 @@
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
5
+ # Mime::Type.register_alias "text/html", :iphone
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+ # Make sure the secret is at least 30 characters and all random,
6
+ # no regular words or you'll be exposed to dictionary attacks.
7
+ Dummy::Application.config.secret_token = 'e5a6dc17a0525a29983af7ed73aa05875ed7271e9c850bf420a73c4564e358576e41dd8cccf04f6b2155d586b26b15dc90d27745c971127f890241c6c4c2c9e7'
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
4
+
5
+ # Use the database for sessions instead of the cookie-based default,
6
+ # which shouldn't be used to store highly confidential information
7
+ # (create the session table with "rails generate session_migration")
8
+ # Dummy::Application.config.session_store :active_record_store
@@ -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]
9
+ end
10
+
11
+ # Disable root element in JSON by default.
12
+ ActiveSupport.on_load(:active_record) do
13
+ self.include_root_in_json = false
14
+ end
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,58 @@
1
+ Dummy::Application.routes.draw do
2
+ # The priority is based upon order of creation:
3
+ # first created -> highest priority.
4
+
5
+ # Sample of regular route:
6
+ # match 'products/:id' => 'catalog#view'
7
+ # Keep in mind you can assign values other than :controller and :action
8
+
9
+ # Sample of named route:
10
+ # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
11
+ # This route can be invoked with purchase_url(:id => product.id)
12
+
13
+ # Sample resource route (maps HTTP verbs to controller actions automatically):
14
+ # resources :products
15
+
16
+ # Sample resource route with options:
17
+ # resources :products do
18
+ # member do
19
+ # get 'short'
20
+ # post 'toggle'
21
+ # end
22
+ #
23
+ # collection do
24
+ # get 'sold'
25
+ # end
26
+ # end
27
+
28
+ # Sample resource route with sub-resources:
29
+ # resources :products do
30
+ # resources :comments, :sales
31
+ # resource :seller
32
+ # end
33
+
34
+ # Sample resource route with more complex sub-resources
35
+ # resources :products do
36
+ # resources :comments
37
+ # resources :sales do
38
+ # get 'recent', :on => :collection
39
+ # end
40
+ # end
41
+
42
+ # Sample resource route within a namespace:
43
+ # namespace :admin do
44
+ # # Directs /admin/products/* to Admin::ProductsController
45
+ # # (app/controllers/admin/products_controller.rb)
46
+ # resources :products
47
+ # end
48
+
49
+ # You can have the root of your site routed with "root"
50
+ # just remember to delete public/index.html.
51
+ root :to => 'home#index'
52
+
53
+ # See how all your routes lay out with "rake routes"
54
+
55
+ # This is a legacy wild controller route that's not recommended for RESTful applications.
56
+ # Note: This route will make all actions in every controller accessible via GET requests.
57
+ # match ':controller(/:action(/:id))(.:format)'
58
+ end
File without changes
File without changes
@@ -0,0 +1,186 @@
1
+
2
+
3
+ Started GET "/" for 127.0.0.1 at 2013-01-17 21:00:41 +0400
4
+ Connecting to database specified by database.yml
5
+
6
+ ActionController::RoutingError (No route matches [GET] "/"):
7
+ actionpack (3.2.11) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
8
+ actionpack (3.2.11) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
9
+ railties (3.2.11) lib/rails/rack/logger.rb:32:in `call_app'
10
+ railties (3.2.11) lib/rails/rack/logger.rb:16:in `block in call'
11
+ activesupport (3.2.11) lib/active_support/tagged_logging.rb:22:in `tagged'
12
+ railties (3.2.11) lib/rails/rack/logger.rb:16:in `call'
13
+ actionpack (3.2.11) lib/action_dispatch/middleware/request_id.rb:22:in `call'
14
+ rack (1.4.4) lib/rack/methodoverride.rb:21:in `call'
15
+ rack (1.4.4) lib/rack/runtime.rb:17:in `call'
16
+ activesupport (3.2.11) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
17
+ rack (1.4.4) lib/rack/lock.rb:15:in `call'
18
+ actionpack (3.2.11) lib/action_dispatch/middleware/static.rb:62:in `call'
19
+ railties (3.2.11) lib/rails/engine.rb:479:in `call'
20
+ railties (3.2.11) lib/rails/application.rb:223:in `call'
21
+ rack (1.4.4) lib/rack/content_length.rb:14:in `call'
22
+ railties (3.2.11) lib/rails/rack/log_tailer.rb:17:in `call'
23
+ rack (1.4.4) lib/rack/handler/webrick.rb:59:in `service'
24
+ /Users/mike/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
25
+ /Users/mike/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
26
+ /Users/mike/.rbenv/versions/1.9.3-p194/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
27
+
28
+
29
+ Rendered /Users/mike/.rbenv/versions/1.9.3-p194/gemsets/chaplin-on-rails/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (4.4ms)
30
+
31
+
32
+ Started GET "/" for 127.0.0.1 at 2013-01-17 21:02:45 +0400
33
+ Connecting to database specified by database.yml
34
+ Processing by HomeController#index as HTML
35
+ Rendered home/index.html.erb within layouts/application (1.4ms)
36
+ Compiled home.css (0ms) (pid 85057)
37
+ Compiled application.css (7ms) (pid 85057)
38
+ Completed 500 Internal Server Error in 91ms
39
+
40
+ ActionView::Template::Error (undefined method `requirejs_include_tag' for #<#<Class:0x007ff7540923d0>:0x007ff753921b78>):
41
+ 3: <head>
42
+ 4: <title>Dummy</title>
43
+ 5: <%= stylesheet_link_tag "application", :media => "all" %>
44
+ 6: <%= requirejs_include_tag "application" %>
45
+ 7: <%= csrf_meta_tags %>
46
+ 8: </head>
47
+ 9: <body>
48
+ app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb___1117436073553479438_70350123356700'
49
+
50
+
51
+ Rendered /Users/mike/.rbenv/versions/1.9.3-p194/gemsets/chaplin-on-rails/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
52
+ Rendered /Users/mike/.rbenv/versions/1.9.3-p194/gemsets/chaplin-on-rails/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.8ms)
53
+ Rendered /Users/mike/.rbenv/versions/1.9.3-p194/gemsets/chaplin-on-rails/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (7.8ms)
54
+
55
+
56
+ Started GET "/" for 127.0.0.1 at 2013-01-17 21:04:29 +0400
57
+ Processing by HomeController#index as HTML
58
+ Rendered home/index.html.erb within layouts/application (0.0ms)
59
+ Completed 500 Internal Server Error in 12ms
60
+
61
+ ActionView::Template::Error (undefined method `requirejs_include_tag' for #<#<Class:0x007ff7540923d0>:0x007ff7550ff9c0>):
62
+ 9:
63
+ 10: <%= yield %>
64
+ 11:
65
+ 12: <%= requirejs_include_tag "application" %>
66
+ 13: </body>
67
+ 14: </html>
68
+ app/views/layouts/application.html.erb:12:in `_app_views_layouts_application_html_erb___1117436073553479438_70350130386680'
69
+
70
+
71
+ Rendered /Users/mike/.rbenv/versions/1.9.3-p194/gemsets/chaplin-on-rails/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms)
72
+ Rendered /Users/mike/.rbenv/versions/1.9.3-p194/gemsets/chaplin-on-rails/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.8ms)
73
+ Rendered /Users/mike/.rbenv/versions/1.9.3-p194/gemsets/chaplin-on-rails/gems/actionpack-3.2.11/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (6.1ms)
74
+
75
+
76
+ Started GET "/" for 127.0.0.1 at 2013-01-17 21:04:34 +0400
77
+ Processing by HomeController#index as HTML
78
+ Rendered home/index.html.erb within layouts/application (0.0ms)
79
+ Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)
80
+
81
+
82
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-01-17 21:04:34 +0400
83
+ Served asset /application.css - 200 OK (6ms)
84
+
85
+
86
+ Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2013-01-17 21:04:34 +0400
87
+ Served asset /home.css - 200 OK (1ms)
88
+
89
+
90
+ Started GET "/" for 127.0.0.1 at 2013-01-17 21:05:39 +0400
91
+ Connecting to database specified by database.yml
92
+ Processing by HomeController#index as HTML
93
+ Rendered home/index.html.erb within layouts/application (15.3ms)
94
+ Completed 200 OK in 28ms (Views: 27.2ms | ActiveRecord: 0.0ms)
95
+
96
+
97
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-01-17 21:05:39 +0400
98
+ Served asset /application.css - 200 OK (3ms)
99
+
100
+
101
+ Started GET "/assets/require.js" for 127.0.0.1 at 2013-01-17 21:05:39 +0400
102
+ Compiled require.js (0ms) (pid 85415)
103
+ Served asset /require.js - 200 OK (16ms)
104
+
105
+
106
+ Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2013-01-17 21:05:39 +0400
107
+ Served asset /home.css - 200 OK (2ms)
108
+
109
+
110
+ Started GET "/assets/application" for 127.0.0.1 at 2013-01-17 21:05:40 +0400
111
+ Compiled application.js (251ms) (pid 85415)
112
+ Served asset /application - 200 OK (265ms)
113
+
114
+
115
+ Started GET "/assets/dummy.js" for 127.0.0.1 at 2013-01-17 21:05:40 +0400
116
+ Compiled dummy.js (128ms) (pid 85415)
117
+ Served asset /dummy.js - 200 OK (139ms)
118
+
119
+
120
+ Started GET "/assets/chaplin.js" for 127.0.0.1 at 2013-01-17 21:05:40 +0400
121
+ Compiled chaplin.js (393ms) (pid 85415)
122
+ Served asset /chaplin.js - 200 OK (425ms)
123
+
124
+
125
+ Started GET "/assets/views/layout.js" for 127.0.0.1 at 2013-01-17 21:05:41 +0400
126
+ Compiled views/layout.js (150ms) (pid 85415)
127
+ Served asset /views/layout.js - 200 OK (164ms)
128
+
129
+
130
+ Started GET "/assets/routes.js" for 127.0.0.1 at 2013-01-17 21:05:41 +0400
131
+ Compiled routes.js (127ms) (pid 85415)
132
+ Served asset /routes.js - 200 OK (162ms)
133
+
134
+
135
+ Started GET "/assets/jquery.js" for 127.0.0.1 at 2013-01-17 21:05:41 +0400
136
+ Compiled jquery.js (2ms) (pid 85415)
137
+ Served asset /jquery.js - 200 OK (35ms)
138
+
139
+
140
+ Started GET "/assets/underscore.js" for 127.0.0.1 at 2013-01-17 21:05:41 +0400
141
+ Compiled underscore.js (0ms) (pid 85415)
142
+ Served asset /underscore.js - 200 OK (34ms)
143
+
144
+
145
+ Started GET "/assets/backbone.js" for 127.0.0.1 at 2013-01-17 21:05:41 +0400
146
+ Compiled backbone.js (0ms) (pid 85415)
147
+ Served asset /backbone.js - 200 OK (24ms)
148
+
149
+
150
+ Started GET "/" for 127.0.0.1 at 2013-01-17 21:50:32 +0400
151
+ Connecting to database specified by database.yml
152
+ Processing by HomeController#index as HTML
153
+ Rendered home/index.html.erb within layouts/application (17.5ms)
154
+ Completed 200 OK in 50ms (Views: 49.2ms | ActiveRecord: 0.0ms)
155
+
156
+
157
+ Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2013-01-17 21:50:32 +0400
158
+ Served asset /application.css - 200 OK (3ms)
159
+
160
+
161
+ Started GET "/assets/home.css?body=1" for 127.0.0.1 at 2013-01-17 21:50:32 +0400
162
+ Served asset /home.css - 200 OK (2ms)
163
+
164
+
165
+ Started GET "/assets/require.js" for 127.0.0.1 at 2013-01-17 21:50:32 +0400
166
+ Served asset /require.js - 200 OK (17ms)
167
+
168
+
169
+ Started GET "/assets/application" for 127.0.0.1 at 2013-01-17 21:50:32 +0400
170
+ Served asset /application - 200 OK (30ms)
171
+
172
+
173
+ Started GET "/assets/dummy.js" for 127.0.0.1 at 2013-01-17 21:50:33 +0400
174
+ Served asset /dummy.js - 304 Not Modified (2ms)
175
+
176
+
177
+ Started GET "/assets/views/layout.js" for 127.0.0.1 at 2013-01-17 21:50:33 +0400
178
+ Served asset /views/layout.js - 304 Not Modified (3ms)
179
+
180
+
181
+ Started GET "/assets/routes.js" for 127.0.0.1 at 2013-01-17 21:50:33 +0400
182
+ Served asset /routes.js - 304 Not Modified (2ms)
183
+
184
+
185
+ Started GET "/assets/jquery.js" for 127.0.0.1 at 2013-01-17 21:50:33 +0400
186
+ Served asset /jquery.js - 304 Not Modified (29ms)