From owner-freebsd-ruby@FreeBSD.ORG Mon Jun 11 08:05:09 2012 Return-Path: Delivered-To: ruby@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB0AE1065670 for ; Mon, 11 Jun 2012 08:05:09 +0000 (UTC) (envelope-from zlatko.asenov@gmail.com) Received: from mail-bk0-f54.google.com (mail-bk0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2CE1A8FC0C for ; Mon, 11 Jun 2012 08:05:08 +0000 (UTC) Received: by bkvi18 with SMTP id i18so4061281bkv.13 for ; Mon, 11 Jun 2012 01:05:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=urlHaRt8k6Tu5r7nlWazntvkd5g0F/ThyrBGQWXQIIY=; b=pdX88ybP0hsxI55pi7mi0o9jEDu9qmWaG48FoHYO6QL64QVoWyeLzA5xkRby/mPMiK TakPoiybMnAzFnx3KTISnAFMSvi18K7xPb+GjIOVSiNsvBd5gNYlDJ002a6oHTYJ1Q3h AiwcN262vt8DWzD/6TwNiCgKreVPZClJxS3PMYCyR3/8GLrtuFm2qdCSpWCZ+r7iV+bJ kkrppBb5dSaOiL79E8Z9vF9pd9I1LRONiL6HzfmVkzyUQfifVezVVb+YZHqRabKwmFtZ y7ILXfuYgPcQYuj/vvMfjA8GmQxyc91DTMtJVemLLgzD9QrLlxSpPcYxKNGpfNpp43aO Ju9g== Received: by 10.204.152.73 with SMTP id f9mr10008313bkw.3.1339401907948; Mon, 11 Jun 2012 01:05:07 -0700 (PDT) Received: from zlatko.pc (office.spnet.net. [212.50.0.66]) by mx.google.com with ESMTPS id 9sm15080326bku.9.2012.06.11.01.05.07 (version=SSLv3 cipher=OTHER); Mon, 11 Jun 2012 01:05:07 -0700 (PDT) Message-ID: <4FD5A6AD.4060303@gmail.com> Date: Mon, 11 Jun 2012 11:05:01 +0300 From: Zlatko Asenov User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:12.0) Gecko/20120605 Thunderbird/12.0.1 MIME-Version: 1.0 To: ruby@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: ExecJS::RuntimeError in Demo#index X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jun 2012 08:05:09 -0000 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: 4:SimpleCms 5:<%= stylesheet_link_tag "application", :media => "all" %> 6:<%= javascript_include_tag "application" %> 7:<%= csrf_meta_tags %> 8: 9: | |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 * # * 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