upgrade for Rails 3.2

update dependecies to make it compatible for Rails 3.2