Why would I want to install node.js in my Rails Application?

Posted by Crazy JIm on Programmers See other posts from Programmers or by Crazy JIm
Published on 2013-10-29T12:29:57Z Indexed on 2013/10/29 16:12 UTC
Read the original article Hit count: 343

Filed under:

Okay guys, I'm super confused. I thought node.js was a sever side framwork, basically the js version of Ruby's Rails or PHP's Zend. However, I'm having some difficulty with turbolinks, and it seems to be the way to fix it is through installing node.js

I mean, I don't understand this at all. How can two frameworks work together like this? Also, it's not a gem (that REALLY would have confused me), you have to install node.js it onto your local machine by running (in the case of Ubuntu)

sudo apt-get install nodejs 

Firstly, how does this totally separate framwork have any bearing on rails? Secondly, surely this isn't fixing the problem forever? When you specify a gem in your gemfile, the server knows what external libraries to install. How does the server know to install nodejs?

© Programmers or respective owner

Related posts about ruby-on-rails