Upgrading Rails versions

Upgraded Rails versions to its latest stable versions, w/ related dependent gems upgraded as well.

Afterward test results show 402 examples, 1 failure, with the failure being the one commented with "@huacnlee提醒说在某些环境下面，下面测试会Pass。所以有可能在你的测试环境会失败。".