Commit 303b764b by Aman Sharma

Remove print statements

parent 56adfb10
...@@ -6,7 +6,6 @@ class Api::V1::RecipesController < ApplicationController ...@@ -6,7 +6,6 @@ class Api::V1::RecipesController < ApplicationController
def create def create
recipe = Recipe.create!(recipe_params) recipe = Recipe.create!(recipe_params)
print recipe_params
if recipe if recipe
render json: recipe render json: recipe
else else
......
...@@ -115,9 +115,7 @@ class NewRecipe extends React.Component { ...@@ -115,9 +115,7 @@ class NewRecipe extends React.Component {
}) })
.then(response => { .then(response => {
if (response.ok) { if (response.ok) {
alert("AAAAAAAAAAA") this.props.history.push(`/recipes`)
// return response.json();
console.log(response.json);
} }
throw new Error("Network response was not ok."); 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