<h1>Photo search</h1>
<h2>Check if your photo was uploaded already</h2>
<% form_remote_tag :update => "results", :url => {:action => 'bring_results'} do %>
   <p>Photo to search: <%= text_field_tag 'photo_to_search' %> </p>
   <p id="results"></p>
<% end %>
<%= observe_field ('photo_to_search',
    :frequency => 1,
    :update => "results",
    :url => { :action => 'bring_results'},
    :with => 'photo_to_search') 
%>