This example shows how to make webpack works with rails, it use webpackrails gem.
npm install && bundle && bundle exec rails s
For Rails 3, please check your gem file, make sure all the gems is compatible with Rails 3.
For Rails 4, please check your gem file, make sure all the gems is compatible with Rails 4.
Usually, gems for Rails 3's version starts with 3.
, and gems for
Rails 4's version starts with 4.
.