downgraded to rails 3.2.13 for easy usage in tdsaa(not perfect)