use new version rails and add log for debug.