Date: Mon, 11 Jun 2012 11:05:01 +0300 From: Zlatko Asenov <zlatko.asenov@gmail.com> To: ruby@freebsd.org Subject: ExecJS::RuntimeError in Demo#index Message-ID: <4FD5A6AD.4060303@gmail.com>
next in thread | raw e-mail | index | archive | help
Hi All, I installed Ruby on Rails from ports and www/node and started learning. After executing 'rails generate controller demo index' I got the error below when trying to access my_ip:3000/demo/index. What can I do to fix it? ExecJS::RuntimeError in Demo#index Showing //usr/home/zodias/rails_learn/simple_cms/app/views/layouts/application.html.erb/ where line *#6* raised: |["ok","(function() {\n\n\n\n}).call(this);\n"] (in /usr/home/zodias/rails_learn/simple_cms/app/assets/javascripts/demo.js.coffee)| Extracted source (around line *#6*): |3:<head> 4:<title>SimpleCms</title> 5:<%= stylesheet_link_tag "application", :media => "all" %> 6:<%= javascript_include_tag "application" %> 7:<%= csrf_meta_tags %> 8:</head> 9:<body> | |Rails.root: /usr/home/zodias/rails_learn/simple_cms| Ruby on Rails's setup additional info: Ruby version 1.9.3 (amd64-freebsd9) RubyGems version 1.8.24 Rack version 1.4 Rails version 3.2.1 JavaScript Runtime Node.js (V8) Active Record version 3.2.1 Action Pack version 3.2.1 Active Resource version 3.2.1 Action Mailer version 3.2.1 Active Support version 3.2.1 Middleware * ActionDispatch::Static * Rack::Lock * #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x00000805c20990> * Rack::Runtime * Rack::MethodOverride * ActionDispatch::RequestId * Rails::Rack::Logger * ActionDispatch::ShowExceptions * ActionDispatch::DebugExceptions * ActionDispatch::RemoteIp * ActionDispatch::Reloader * ActionDispatch::Callbacks * ActiveRecord::ConnectionAdapters::ConnectionManagement * ActiveRecord::QueryCache * ActionDispatch::Cookies * ActionDispatch::Session::CookieStore * ActionDispatch::Flash * ActionDispatch::ParamsParser * ActionDispatch::Head * Rack::ConditionalGet * Rack::ETag * ActionDispatch::BestStandardsSupport Application root /usr/home/zodias/rails_learn/simple_cms Environment development Database adapter postgresql Database schema version 0
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FD5A6AD.4060303>