hi guys,
i am havin a problem displaying content of @wine from the search
action… i get no errors i only get   where the results is when i
examine the html plz help
i posted my code
John
def search
@wines = Wine.find(:all)
@wine_pages, @wines = paginate :wines
end
def searchaction
@search=request.raw_post
@wines = Wine.find(:all,:conditions=>[“name LIKE ?”,@search])
end
action
<% @search %>
<% @wines.each do |wine| %> |
<% end %>
<p align="center"> </p>
<p align="center"> </p> </td>
</tr>
</table>
Enter The
item you wish to search for |
||||||
Search For : <%= text_field_tag :search
%> <%= observe_field(:search, :frequency =>0.5,:url => { :action =>
:searchaction }, :update => :"results") %> |
|