Fixing bug with respond_with to render json: