summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2014-07-10 16:28:49 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2014-07-10 16:28:49 -0400
commit004fa82a35b5083183db38ac1ccd15017ca2f9b9 (patch)
tree973ed81787c0a44b63ee7a08ff9b2ed75ebbeada /app
parentf2fc1dd1f21607f1e63a9c3f7eab749741d7309e (diff)
use the appropriate *_field methods instead of text_field ..., type: *
Diffstat (limited to 'app')
-rw-r--r--app/views/tournaments/_form.html.erb8
-rw-r--r--app/views/users/_form.html.erb2
2 files changed, 5 insertions, 5 deletions
diff --git a/app/views/tournaments/_form.html.erb b/app/views/tournaments/_form.html.erb
index 353ec77..c478ce6 100644
--- a/app/views/tournaments/_form.html.erb
+++ b/app/views/tournaments/_form.html.erb
@@ -61,13 +61,13 @@
</tr>
<tr>
<th>Players per Team: </th>
- <td><%= f.text_field(:min_players_per_team, type: :number, min: 1) %></td>
- <td><%= f.text_field(:max_players_per_team, type: :number, min: 1) %></td>
+ <td><%= f.number_field(:min_players_per_team, min: 1) %></td>
+ <td><%= f.number_field(:max_players_per_team, min: 1) %></td>
</tr>
<tr>
<th>Teams per Match: </th>
- <td><%= f.text_field(:min_teams_per_match, type: :number, min: 1) %></td>
- <td><%= f.text_field(:max_teams_per_match, type: :number, min: 1) %></td>
+ <td><%= f.number_field(:min_teams_per_match, min: 1) %></td>
+ <td><%= f.number_field(:max_teams_per_match, min: 1) %></td>
</tr>
</tbody>
</table>
diff --git a/app/views/users/_form.html.erb b/app/views/users/_form.html.erb
index 69b1606..e4e49f4 100644
--- a/app/views/users/_form.html.erb
+++ b/app/views/users/_form.html.erb
@@ -31,7 +31,7 @@
<div class="field">
<%= f.label :email %><br>
- <%= f.text_field(:email, type: "email") %>
+ <%= f.email_field(:email) %>
</div>
<div class="field">