Rails 4 support

Change routes