From 004fa82a35b5083183db38ac1ccd15017ca2f9b9 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 10 Jul 2014 16:28:49 -0400 Subject: use the appropriate *_field methods instead of text_field ..., type: * --- app/views/tournaments/_form.html.erb | 8 ++++---- app/views/users/_form.html.erb | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'app') 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 @@ Players per Team: - <%= f.text_field(:min_players_per_team, type: :number, min: 1) %> - <%= f.text_field(:max_players_per_team, type: :number, min: 1) %> + <%= f.number_field(:min_players_per_team, min: 1) %> + <%= f.number_field(:max_players_per_team, min: 1) %> Teams per Match: - <%= f.text_field(:min_teams_per_match, type: :number, min: 1) %> - <%= f.text_field(:max_teams_per_match, type: :number, min: 1) %> + <%= f.number_field(:min_teams_per_match, min: 1) %> + <%= f.number_field(:max_teams_per_match, min: 1) %> 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 @@
<%= f.label :email %>
- <%= f.text_field(:email, type: "email") %> + <%= f.email_field(:email) %>
-- cgit v1.2.3-2-g168b