Permalink
Browse files

Adds search input to search page

  • Loading branch information...
1 parent 9d60d2e commit 9bdd1b1258bd56643955658667bc0f514c493a99 Michael Maltese committed Oct 24, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 app/views/articles/search.html.erb
@@ -3,7 +3,12 @@
<h1>Search</h1>
</header>
- <div id="cse" style="width: 100%;">Loading...</div>
+ <%= form_tag search_path, :method => :get do %>
+ <%= text_field_tag :q, params[:q] %>
+ <%= submit_tag "Search" %>
+ <% end %>
+
+ <div id="cse" style="width: 100%;">Loading... </div>
<script src="//www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">
function parseQueryFromUrl () {

0 comments on commit 9bdd1b1

Please sign in to comment.