Rails.application.config.assets.precompile += %w( contest_new.js shooter_new.js payment_new.js ) It can be done this way