兼容rails4.0
Merge branch 'master' of github.com:nickelchen/mdeditor_rails
upgrade to rails 4