You deleted all the includes of important files for Rails like jquery and jquery_ujs. Those lines should never be removed.