Upgraded to rails 41. Fixed gem problems.