Skip to content

Instantly share code, notes, and snippets.

@rbarazi
Created April 11, 2010 15:47
Show Gist options
  • Save rbarazi/362830 to your computer and use it in GitHub Desktop.
Save rbarazi/362830 to your computer and use it in GitHub Desktop.
[Beginning Rails 3] Listing 12-12. The app/views/articles/_search.html.erb File
<%= form_tag search_articles_path, :method => :get do %>
<p>
Search
<%= text_field_tag :keyword, params[:keyword] %>
</p>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment