Rails 4.1 issue resolved. Removed unwanted require bootstrap-modal statement from app.js