after installing fresh Installation , if you are getting this nasty ExjecJS::RuntimeError then it feels annoying .
Problem
and when you look at console it looks like this
after taking a closer look anyone can identify its JavaScript run-time problem , easy and best way to fix it is
download and install node.js , it run on top of V8 ( secret behind chrome’s lightening speed JavaScript engine )
make sure node is accessible from Command Prompt
to check open CMD and type `node -v`
if it’s not accessible then add it to your
then navigate to your rails app directory and start rails server browse to default index.html page
to check open CMD and type `node -v`
if it’s not accessible then add it to your
then navigate to your rails app directory and start rails server browse to default index.html page
<div>
<a href="https://1.bp.blogspot.com/-25VCIcmw5Dc/UDe9FetJZqI/AAAAAAAAGfk/ZNyHi6bliKc/s1600/Ruby+on+Rails-+Welcome+aboard.png"><img class=" aligncenter" src="https://1.bp.blogspot.com/-25VCIcmw5Dc/UDe9FetJZqI/AAAAAAAAGfk/ZNyHi6bliKc/s1600/Ruby+on+Rails-+Welcome+aboard.png" alt="" border="0" /></a>
</div>
<div>
</div>
<p>
you will java script runtime is node.js V8<br /> fix in ubuntu
</p>
<pre>sudo apt-get install python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install nodejs npm
<p>
or you can try some alternate methods :
</p>
<ul>
<li>
<a href="httpss://github.com/cowboyd/therubyracer" data-bitly-type="bitly_hover_card">therubyracer</a> – Google V8 embedded within Ruby
</li>
<li>
<a href="httpss://github.com/cowboyd/therubyrhino" data-bitly-type="bitly_hover_card">therubyrhino</a> – Mozilla Rhino embedded within JRuby
</li>
<li>
<a href="https://nodejs.org/" data-bitly-type="bitly_hover_card">Node.js</a>
</li>
<li>
Apple JavaScriptCore – Included with Mac OS X
</li>
<li>
<a href="https://msdn.microsoft.com/en-us/library/9bbdkx3k.aspx" data-bitly-type="bitly_hover_card">Microsoft Windows Script Host</a> (JScript)
</li>
</ul>
<div>
<img class=" aligncenter" src="https://4.bp.blogspot.com/-hYLDWqXJcTk/UDe9Gcq65qI/AAAAAAAAGfs/eoQdRU6Aw9w/s1600/localhost-3000-shouts-new.png" alt="" border="0" />
</div>
I hope that it helps you to fix your JS and ruby on rails problem ,if it was helpful then please share this