update to rails 4
support rails 4