OSDN Git Service
(root)
/
dianzhuhui
/
site.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Adds validation of inputs
[dianzhuhui/site.git]
/
hanMorph
/
app
/
views
/
hanmorph
/
_searchmenu.html.erb
diff --git
a/hanMorph/app/views/hanmorph/_searchmenu.html.erb
b/hanMorph/app/views/hanmorph/_searchmenu.html.erb
index
8e20178
..
a69119a
100644
(file)
--- a/
hanMorph/app/views/hanmorph/_searchmenu.html.erb
+++ b/
hanMorph/app/views/hanmorph/_searchmenu.html.erb
@@
-20,4
+20,15
@@
<% end %>
</li>
</ul>
+
+ <% if @errors && !@errors.empty? then %>
+ <ul style="color: red">
+ <% if @message then %>
+ <li><%= @message %></li>
+ <% end %>
+ <% for error in @errors %>
+ <li><%= error %></li>
+ <% end %>
+ </ul>
+ <% end %>
</div>