# Remote call issues

**URL:** <https://www.ruby-forum.com/t/remote-call-issues/107134>\
**Category:** Rails\
**Created:** [June 18, 2007, 3:08pm UTC](https://www.ruby-forum.com/t/remote-call-issues/107134 "2007-06-18T15:08:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![miked](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed655f/32.png) [@miked](https://www.ruby-forum.com/u/miked)\
**Post date:** [June 18, 2007, 3:08pm UTC](https://www.ruby-forum.com/t/remote-call-issues/107134/1 "2007-06-18T15:08:13Z")

</div>

Hello:

I have a remote call i’m making in a search feature that’s on a page  
with another form.

Off to the side, this remote form performs the search and returns the  
results.

Problem is that if the user enters another search, the remote form  
doesn’t fire and no

new results are returned.

The remote form is this:

 \<% form\_remote\_tag :url =\> '/users/searchpt' do -%\> \<%= text\_field\_tag "search", nil, :size =\> 25 %\>&nbsp;&nbsp; \<%= submit\_tag "Search" %\> \<% end %\>

Where the div “srchres” is where the results are placed.

And here’s the render code from the controller that places the results:  
render :update do |page|  
if @users.empty?  
page.replace ‘srchRes’, :partial =\> ‘/users/usearchempty’  
else  
page.replace ‘srchRes’, :partial =\> ‘/users/usearchfriends’  
end  
end

I’m sure it’s something I’m doing with a mismatch of methods. Any help  
you could

provide would be greatly appreciated.

Thanks!

Mike
