Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Initially I simply commented out line #6 (just so I could keep working).</p> <pre><code>&lt;%#= javascript_include_tag "application" %&gt; </code></pre> <p>Eventually I needed javascript, so I had to return to this issue. I kept the line above commented out, and just hard-coded this one immediately below it:</p> <pre><code>&lt;script src="/assets/application.js" type="text/javascript"&gt;&lt;/script&gt; </code></pre> <p>The page loaded fine, so I viewed the page's source, and looked at </p> <pre><code>http://0.0.0.0:3000/assets/application.js </code></pre> <p>... only to find a similar error:</p> <pre><code>throw Error("NameError: uninitialized constant JSON::ParserError (in /Users/me/Dev/fishapp/app/assets/javascripts/products.js.coffee)") </code></pre> <p>So I decided to load a rails console and see if I could load the JSON gem, but got an error with iconv:</p> <pre><code>ruby-1.9.2-p290 :001 &gt; require 'json' LoadError: no such file to load -- iconv </code></pre> <p>Meanwhile loading the rails gem produced:</p> <pre><code>ruby-1.9.2-p290 :004 &gt; require 'rails' =&gt; false </code></pre> <p>So I searched around and found this:</p> <p><a href="http://beginrescueend.com/packages/iconv/" rel="nofollow">http://beginrescueend.com/packages/iconv/</a></p> <p>Follow those instructions, and your problem will be resolved! For the record, those instructions are:</p> <pre><code>rvm pkg install iconv rvm remove 1.9.2 rvm install 1.9.2 --with-iconv-dir=$rvm_path/usr </code></pre> <p>I'm leaving the steps I took in case others search Google for similar errors.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload