Permalink
Browse files

Adding searchbox to view

  • Loading branch information...
1 parent 82f7e6f commit 41f3498bfe4fd8ca1bdc7ca08179c6006165168a @jonpaul committed Feb 3, 2011
Showing with 7 additions and 0 deletions.
  1. +6 −0 app/views/shared/search.html.erb
  2. +1 −0 themes/development_theme/views/layouts/application.html.erb
@@ -0,0 +1,6 @@
+<% form_tag search_url do -%>
+ <%= text_field_tag :query, {}, {:type => "search",
+ :placeholder => "Search site for...",
+ :value => (params[:query] if params[:query])} %>
+ <%= submit_tag 'Go' %>
+<% end %>
@@ -8,6 +8,7 @@
<%= render :partial => "/shared/ie6check" if request.env['HTTP_USER_AGENT'] =~ /MSIE/ -%>
<div id='header'>
<%= render :partial => "/shared/header" %>
+ <%= render :partial => "/shared/search" %>
</div>
<div id='body' class='clearfix'>
<%= yield %>

0 comments on commit 41f3498

Please sign in to comment.