Skip to content

Commit 64c4c7d

Browse files
add reminder about submit button element
common gotcha among students is to forget that submit button is <input type=submit>, not <button>. added small reminder to that effect
1 parent 5164bbd commit 64c4c7d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Your local pet adoption store has asked you (a frequent dog walker and visitor)
1818

1919
3. The home page will also need a new view `index.erb`. This page should welcome you to the Puppy Adoption Site. Add this view to the controller action.
2020

21-
4. Now, we need to create a form for a user to list a new puppy that is available for adoption. You can create this form in `views/create_puppy.erb`. Remember, you'll need to set up another controller action for a user to be able to view this form in the browser.
21+
4. Now, we need to create a form for a user to list a new puppy that is available for adoption. You can create this form in `views/create_puppy.erb`. Remember, you'll need to set up another controller action for a user to be able to view this form in the browser. Another reminder: the "submit" button of a form is an `<input>` element with a `type` of `"submit"`, *not* a `<button>` element.
2222

2323
5. Now we need to make sure the form is being submitted properly. You'll need to have a third controller action that takes the input from the user and renders a third view (`views/dislay_puppy.erb`) which displays the info for the puppy that was just created.
2424

0 commit comments

Comments
 (0)