Commit 303b764b by Aman Sharma

Remove print statements

parent 56adfb10
......@@ -6,7 +6,6 @@ class Api::V1::RecipesController < ApplicationController
def create
recipe = Recipe.create!(recipe_params)
print recipe_params
if recipe
render json: recipe
else
......
......@@ -115,9 +115,7 @@ class NewRecipe extends React.Component {
})
.then(response => {
if (response.ok) {
alert("AAAAAAAAAAA")
// return response.json();
console.log(response.json);
this.props.history.push(`/recipes`)
}
throw new Error("Network response was not ok.");
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment