remove the unnecessary code.
load the local files.
upgrade to rails 4.1.