if @status == true #show invoice number and stuff json.status @status else json.status @status json.error_message @error_message end