Finish Rails 4 port.