Added Railtie to return 404 on model not found