Better configuration for ruby and rails