update for rails 4
update to rails 4