Here is a snip of my view code
<% form_for(:post, :url => search_path, :html => { :method
=> :get }) do |f| -%>
<%= text_field_tag :q, params[:q], "Enter search
term(s)", :style
=> 'color: #999;' %>
<%= f.submit("Search")%>
<% end -%>
And here is the controller:
def search
@users = User.search params[:q]
end
User.search is using Sphinx to search the database...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---