Update for latest versions of rails

Also add rails 4.2 beta