Make it compatiable with Rails 4

I tested it in my own Rails 4 project and it does work.

I don't care the mass assignment because I added password protection to tolk.