Rails 4 support

Change route specifications