Displaying 2 results from an estimated 2 matches for "suchfeld".
Did you mean:
kuhfeld
2007 Jun 06
1
highlight and pagination
I made a search-field which shows all hits and highlights the all
words searched for:
def suche
if params[:link][:suchfeld] == "description"
@description = "show"
@highlight = params[:suche]
end
@link_pages, @links =
paginate :link, :order_by => ''url'',
:conditions => ["#{params[:link][:suchfeld]} LIKE...
2007 Jun 06
1
"selected" in form.select
I have a search form in my navbar where a user can select in which
area he wants to search. After clicking the submit-button the
results get rendered but the previous selected area is no longer
selected.
<%= form.select (:suchfeld,
[ [''Beschreibungen'',''description''],
[''Headlines'',''headline'']] )
%>
I was able to re-fill the search-field wich the previous content
doing the following:
<%= form.text_field
:suche,
:name => "suche&q...