Skip to content

Commit d0adf11

Browse files
committed
Merge pull request #7 from learn-co-curriculum/wip-submit-button
add reminder about submit button element
2 parents 5164bbd + 24b87ee commit d0adf11

2 files changed

Lines changed: 3 additions & 3 deletions

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

spec/models/puppy_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
end
1111

1212
it 'can read a puppy breed' do
13-
expect(puppy.name).to eq("black lab")
13+
expect(puppy.breed).to eq("black lab")
1414
end
1515

1616
it 'can read a puppy age' do
17-
expect(puppy.name).to eq(2)
17+
expect(puppy.age).to eq(2)
1818
end
1919

2020
it 'can change puppy age' do

0 commit comments

Comments
 (0)