Skip to content

Commit 5179b89

Browse files
author
Steven G. Harms
committed
Add guidance for submit button
Fixes learn-co-students#14
1 parent de431b9 commit 5179b89

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ display the data from the form after it has been submitted by the user.
2929

3030
![form for basketball team](https://curriculum-content.s3.amazonaws.com/web-development/Sinatra/basketball-form.png)
3131

32+
When creating your form, your "Submit" button will need to be identified by
33+
either an `id` attribute or a `name` attribute with value of "Submit". We're
34+
telling this to you now because our test frame work, Capybara, requires buttons
35+
to be [findable either by an `id` or `name` attribute][capybara-click_button].
36+
3237
4. Handle form submission
3338

3439
Create a route that responds to a POST request at `/team`
@@ -54,3 +59,5 @@ display the data from the form after it has been submitted by the user.
5459
* [Ashley William's GitHub](https://github.com/ashleygwilliams/) - [Citibike Sinatra](https://github.com/ashleygwilliams/citibike-sinatra)
5560

5661
<p data-visibility='hidden'>View <a href='https://learn.co/lessons/basic-sinatra-forms-lab' title='Sinatara Forms Lab'>Sinatara Forms Lab</a> on Learn.co and start learning to code for free.</p>
62+
63+
[capybara-click_button]: http://www.rubydoc.info/gems/capybara/Capybara%2FNode%2FActions%3Aclick_button

views/newteam.erb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
<title>Basketball Team Signup</title>
66
</head>
77
<body>
8-
9-
108
</body>
119
</html>
1210

0 commit comments

Comments
 (0)