Closed 3point14guy closed 7 years ago
Ben and Chris looked over my code with me. The problem was in my HTML. I had left out the name= portion in the modal that tells what the input in the form equates to in my api.
Adding name="movie[name]": to my input type solved the problem.
<input type="text" class="form-control" name="movie[name]"
id="inputMovie" placeholder="Movie Title">
Having trouble getting my POST request to work. I can't seem to capture the data input into my modal, or at least I think that is the problem...
I get a 400 error Bad request. On the rails side, I get: ActionController::ParameterMissing (param is missing or the value is empty: movie):