From the course: Installing and Running Ruby on Rails 6

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Install JavaScript tools for Ruby on Rails

Install JavaScript tools for Ruby on Rails - Ruby on Rails Tutorial

From the course: Installing and Running Ruby on Rails 6

Start my 1-month free trial

Install JavaScript tools for Ruby on Rails

- [Instructor] In this movie, we're going to talk about installing some JavaScript tools that Ruby on Rails is going to need. One of the biggest changes in Ruby on Rails 6 is that it uses Webpack to manage JavaScript. That's a big change. In the past it used something called asset pipeline, but the world of JavaScript has really matured and a lot of web applications are taking advantage of tools like Jquery, React, Vue.js, Angular, and Babel. And it's very common to want to incorporate those into Rails. And so Ruby on Rails 6 tries to make that easy by incorporating Webpack. In order to use Webpack you'll need to have Node.js and also Yarn. If you already have either or both of those then you won't need to install them again. But if not, it's easy to do. To install them you'll just need to go to Homebrew and say brew install node. It'll take a moment while it goes out and it finds the node library. It'll come back…

Contents