Created
December 30, 2011 20:17
-
-
Save d3chapma/1541307 to your computer and use it in GitHub Desktop.
Request and Error when I try to visit the homepage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var exchange_rates = { | |
<%= ExchangeRate::CURRENCIES.collect {|currency| "'#{currency}':#{CurrencyExchange.currency_exchange(100, 'USD', currency).to_f / 100}"}.join(',') %> | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Started GET "/" for 127.0.0.1 at 2011-12-30 15:01:53 -0500 | |
Processing by HomeController#index as HTML | |
News Load (0.7ms) SELECT `items`.* FROM `items` WHERE `items`.`type` IN ('News') AND (sponsored = 1 AND active = 1 AND temp = 0 AND avatar_id is not null) ORDER BY created_at desc LIMIT 3 | |
News Load (0.6ms) SELECT `items`.* FROM `items` WHERE `items`.`type` IN ('News') ORDER BY created_at desc LIMIT 3 | |
Completed 200 OK in 74ms (Views: 3.0ms | ActiveRecord: 62.6ms | Sphinx: 0.0ms) | |
cache: [GET /] miss | |
Dalli::Server#connect 127.0.0.1:11211 | |
127.0.0.1:11211 failed (count: 2) | |
127.0.0.1:11211 is still down (for 74.233 seconds now) | |
Resource Load (1.8ms) SELECT `resources`.* FROM `resources` WHERE `resources`.`title` = 'Home' LIMIT 1 | |
down_retry_delay not reached for 127.0.0.1:11211 (0.993 seconds left) | |
Compiled application.js (67ms) (pid 19405) | |
ExchangeRate Load (1.4ms) SELECT `exchange_rates`.* FROM `exchange_rates` WHERE `exchange_rates`.`currency` = 'USD' LIMIT 1 | |
ExchangeRate Load (0.2ms) SELECT `exchange_rates`.* FROM `exchange_rates` | |
Rendered layouts/_application_includes.html.erb (815.2ms) | |
Rendered home/index.html.erb within layouts/application (825.8ms) | |
ActionView::Template::Error (uninitialized constant ExchangeRateParser::ParseDate | |
(in /Users/dc/rails_projects/h3d/app/assets/javascripts/exchange.js.erb)): | |
1: <%= stylesheet_link_tag 'application', :media => 'all' %> | |
2: <%#= javascript_include_tag "https://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js" %> | |
3: | |
4: <%= javascript_include_tag 'application' %> | |
5: | |
6: <%= yield :javascripts %> | |
7: | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/ext/module.rb:36:in `const_missing' | |
/Users/dc/rails_projects/h3d/vendor/plugins/currencyexchange/lib/rails_connection/currency_exchange.rb:98:in `xml_date' | |
/Users/dc/rails_projects/h3d/vendor/plugins/currencyexchange/lib/rails_connection/currency_exchange.rb:86:in `block in parse_rates_for_currency' | |
/Users/dc/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/rexml/element.rb:905:in `block in each' | |
/Users/dc/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/rexml/xpath.rb:67:in `each' | |
/Users/dc/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/rexml/xpath.rb:67:in `each' | |
/Users/dc/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/rexml/element.rb:905:in `each' | |
/Users/dc/rails_projects/h3d/vendor/plugins/currencyexchange/lib/rails_connection/currency_exchange.rb:84:in `parse_rates_for_currency' | |
/Users/dc/rails_projects/h3d/vendor/plugins/currencyexchange/lib/rails_connection/currency_exchange.rb:70:in `request_rates' | |
/Users/dc/rails_projects/h3d/vendor/plugins/currencyexchange/lib/rails_connection/currency_exchange.rb:41:in `currency_rate_exists?' | |
/Users/dc/rails_projects/h3d/vendor/plugins/currencyexchange/lib/rails_connection/currency_exchange.rb:30:in `currency_exchange' | |
/Users/dc/rails_projects/h3d/app/assets/javascripts/exchange.js.erb:2:in `block in evaluate_source' | |
/Users/dc/rails_projects/h3d/app/assets/javascripts/exchange.js.erb:2:in `collect' | |
/Users/dc/rails_projects/h3d/app/assets/javascripts/exchange.js.erb:2:in `evaluate_source' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/tilt-1.3.3/lib/tilt/template.rb:209:in `instance_eval' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/tilt-1.3.3/lib/tilt/template.rb:209:in `evaluate_source' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/tilt-1.3.3/lib/tilt/template.rb:144:in `cached_evaluate' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/tilt-1.3.3/lib/tilt/template.rb:127:in `evaluate' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/tilt-1.3.3/lib/tilt/template.rb:76:in `render' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/context.rb:175:in `block in evaluate' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/context.rb:172:in `each' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/context.rb:172:in `evaluate' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:171:in `build_dependency_context_and_body' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:135:in `dependency_context' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:194:in `build_dependencies_paths_and_assets' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:141:in `dependency_paths' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:61:in `mtime' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/asset.rb:58:in `block in encode_with' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/asset.rb:57:in `each' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/asset.rb:57:in `encode_with' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:43:in `encode_with' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/caching.rb:52:in `cache_asset' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/environment.rb:82:in `build_asset' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/base.rb:99:in `find_asset' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/environment.rb:72:in `find_asset' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/base.rb:110:in `[]' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:200:in `block in build_dependencies_paths_and_assets' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:194:in `each' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:194:in `build_dependencies_paths_and_assets' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:141:in `dependency_paths' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:61:in `mtime' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/asset.rb:58:in `block in encode_with' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/asset.rb:57:in `each' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/asset.rb:57:in `encode_with' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/bundled_asset.rb:43:in `encode_with' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/caching.rb:52:in `cache_asset' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/environment.rb:82:in `build_asset' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/trail.rb:102:in `find_asset_in_path' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/base.rb:101:in `find_asset' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/environment.rb:72:in `find_asset' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/sprockets-2.0.3/lib/sprockets/base.rb:110:in `[]' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.1.1/lib/sprockets/helpers/rails_helper.rb:130:in `asset_for' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.1.1/lib/sprockets/helpers/rails_helper.rb:27:in `block in javascript_include_tag' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.1.1/lib/sprockets/helpers/rails_helper.rb:26:in `collect' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.1.1/lib/sprockets/helpers/rails_helper.rb:26:in `javascript_include_tag' | |
/Users/dc/rails_projects/h3d/app/views/layouts/_application_includes.html.erb:4:in `_app_views_layouts__application_includes_html_erb___4234213952173350138_2190382900' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.1.1/lib/action_view/template.rb:144:in `block in render' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.1/lib/active_support/notifications.rb:55:in `instrument' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.1.1/lib/action_view/template.rb:142:in `render' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.1.1/lib/action_view/renderer/partial_renderer.rb:256:in `render_partial' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.1.1/lib/action_view/renderer/partial_renderer.rb:228:in `block (2 levels) in render' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.1.1/lib/action_view/renderer/abstract_renderer.rb:33:in `block in instrument' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.1/lib/active_support/notifications.rb:53:in `block in instrument' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.1/lib/active_support/notifications.rb:53:in `instrument' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.1.1/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.1.1/lib/action_view/renderer/partial_renderer.rb:227:in `block in render' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.1.1/lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.1.1/lib/action_view/renderer/partial_renderer.rb:219:in `render' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.1.1/lib/action_view/renderer/renderer.rb:41:in `render_partial' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.1.1/lib/action_view/renderer/renderer.rb:15:in `render' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.1.1/lib/action_view/helpers/rendering_helper.rb:24:in `render' | |
/Users/dc/rails_projects/h3d/app/views/layouts/application.html.erb:7:in `_app_views_layouts_application_html_erb___1048081149871390399_2517965000' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.1.1/lib/action_view/template.rb:144:in `block in render' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.1.1/lib/active_support/notifications.rb:55:in `instrument' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.1.1/lib/action_view/template.rb:142:in `render' | |
/Users/dc/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.1.1/lib/action_view/renderer/streaming_template_renderer.rb:73:in `block (2 levels) in delayed_render' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I take line 2 out of exchange.js.erb the page seems to load fine. But as long as it is there I get the given error message.