# Submit\_to\_remote in \_form.rhtml

**URL:** <https://www.ruby-forum.com/t/submit-to-remote-in-form-rhtml/120056>\
**Category:** Rails\
**Created:** [November 13, 2007, 12:26pm UTC](https://www.ruby-forum.com/t/submit-to-remote-in-form-rhtml/120056 "2007-11-13T12:26:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![madhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/aca169/32.png) [@madhan](https://www.ruby-forum.com/u/madhan)\
**Post date:** [November 13, 2007, 12:26pm UTC](https://www.ruby-forum.com/t/submit-to-remote-in-form-rhtml/120056/1 "2007-11-13T12:26:54Z")

</div>

hi all,  
i have created one booking.rhtml in my requesition model and used  
scaffold to generate other .rhtml files.  
in booking.rhtml the submit\_to\_remote is working fine but in \_form.rhtml  
it is not working…  
i tried to print some text for that ajax action. i think not even the  
control goes to the controller…  
my code is…

in \_form.rhtml

* * *
 \<%= text\_field 'requesition', 'patient\_code' %\> \<%= submit\_to\_remote "getPatientDetail", "Update Info", :update =\> 'patient\_biodata', :url =\> { :controller =\> 'requesition', :action =\> "get\_patient\_details" } %\> 

XXX

in controller

* * *

def get\_patient\_details  
render :text =\> “Patient Details here…”  
end

if any know, guide me…

---

<div class="post-metadata">

**Author:** ![madhan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/aca169/32.png) [@madhan](https://www.ruby-forum.com/u/madhan)\
**Post date:** [November 13, 2007, 12:41pm UTC](https://www.ruby-forum.com/t/submit-to-remote-in-form-rhtml/120056/2 "2007-11-13T12:41:39Z")

</div>

Hi use breakpoint like this  
def get\_patient\_details  
breakpoint  
render :text =\> “Patient Details here…”  
end

and in the console write in the directory  
ruby script\breakpointer  
then you can know whether its coming to controller or not by running and  
then checking the console
