update to rails 4.0

http://weblog.rubyonrails.org/2013/6/25/Rails-4-0-final/