summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <shumakl@purdue.edu>2014-04-27 02:46:20 -0400
committerLuke Shumaker <shumakl@purdue.edu>2014-04-27 02:46:20 -0400
commitb7ef3c9078f40e5c23f53c59b7741883c3bc2fb7 (patch)
treefba018bcab973fbc2554668f0d6b2d42daff794c
parent6c615c4eaa973d83778fc6d34157f823880765f1 (diff)
misc form touch-up
-rw-r--r--app/views/layouts/application.html.erb2
-rw-r--r--app/views/users/_form.html.erb2
-rw-r--r--app/views/users/new.html.erb2
3 files changed, 3 insertions, 3 deletions
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index dd0ea91..cf55c18 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -18,7 +18,7 @@
<%# This is the search bar #%>
<div>
<%= form_tag("/search", method: "get", :class => "search") do %>
- <%= text_field_tag(:query, params[:query]) %>
+ <%= text_field_tag(:query, params[:query], type: "search") %>
<%= submit_tag("Search", :name=>nil) %>
<% end %>
</div>
diff --git a/app/views/users/_form.html.erb b/app/views/users/_form.html.erb
index 40f8f09..1feebf8 100644
--- a/app/views/users/_form.html.erb
+++ b/app/views/users/_form.html.erb
@@ -8,7 +8,7 @@
<div class="field">
<%= f.label :email %><br>
- <%= f.text_field :email %>
+ <%= f.text_field(:email, type: "email") %>
</div>
<div class="field">
diff --git a/app/views/users/new.html.erb b/app/views/users/new.html.erb
index 5e369ac..5c88945 100644
--- a/app/views/users/new.html.erb
+++ b/app/views/users/new.html.erb
@@ -8,7 +8,7 @@
</p>
<p>
<%= f.label :email %><br>
- <%= f.text_field :email %>
+ <%= f.text_field(:email, type: "email") %>
</p>
<p>
<%= f.label :user_name %><br>