Fixed some routes and rails best practices