tested with rails 4 and updated gem dependency. [fix #1]