# Urgent! responds\_to\_parent error

**URL:** <https://www.ruby-forum.com/t/urgent-responds-to-parent-error/119357>\
**Category:** Rails\
**Created:** [November 6, 2007, 11:50am UTC](https://www.ruby-forum.com/t/urgent-responds-to-parent-error/119357 "2007-11-06T11:50:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zaid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/e95f7d/32.png) [@zaid](https://www.ruby-forum.com/u/zaid)\
**Post date:** [November 6, 2007, 11:50am UTC](https://www.ruby-forum.com/t/urgent-responds-to-parent-error/119357/1 "2007-11-06T11:50:45Z")

</div>

Hello

I am trying to upload a picture and refrecar layer with  
responds\_to\_parent. I have this form

## rhtml

\<% form\_for(photo, :url =\> {:action =\> “create”, :tID =\> params[:tID] },  
:html =\> { :multipart =\> true, :target =\> “uploadFrame”, :id =\>  
‘uploadPhotoForm’ }) do |f| -%\>

 ![]()

 \<%= image\_submit\_tag ("../images/ok.gif") %\> \<% end -%\>
## controller

def create  
@photo = Photo.new(params[:photo])  
if @photo.save  
responds\_to\_parent do  
render :update do |page|  
if @success  
page.form.reset ‘uploadPhotoForm’  
else  
page.alert “Photo upload didn’t work! Sorry!”  
end  
end  
end  
end  
end

## Error en log

NoMethodError (undefined method `responds\_to\_parent’ for  
#PhotosController:0x48b4454):

I have not copied installed, pq not found to install the  
vendor/plugins/responds\_to\_parent and vendor/plugins/remote\_upload

## I have included this js
Someone knows this because I do not find the responds\_to\_parent? ? Please do not look that over. The project had to deliver yesterday and not It functioning .... Thank you

---

<div class="post-metadata">

**Author:** ![zaid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/e95f7d/32.png) [@zaid](https://www.ruby-forum.com/u/zaid)\
**Post date:** [November 6, 2007, 12:13pm UTC](https://www.ruby-forum.com/t/urgent-responds-to-parent-error/119357/2 "2007-11-06T12:13:16Z")

</div>

> I have not copied installed, pq not found to install the  
> vendor/plugins/responds\_to\_parent and vendor/plugins/remote\_upload

So are those plugins installed or not. That sentence doesn’t make any  
sense to me.

Fred

---

<div class="post-metadata">

**Author:** ![zaid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/e95f7d/32.png) [@zaid](https://www.ruby-forum.com/u/zaid)\
**Post date:** [November 6, 2007, 12:17pm UTC](https://www.ruby-forum.com/t/urgent-responds-to-parent-error/119357/3 "2007-11-06T12:17:54Z")

</div>

Frederick C. wrote:

> > I have not copied installed, pq not found to install the  
> > vendor/plugins/responds\_to\_parent and vendor/plugins/remote\_upload
> 
> So are those plugins installed or not. That sentence doesn’t make any  
> sense to me.
> 
> Fred

Hello Fred.

I copied plugins responds\_to\_parent and remote\_upload in vendor/plugins/  
because I am not allowed to install them. Already, the path does not  
exist.

Thank you

---

<div class="post-metadata">

**Author:** ![zaid](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/z/e95f7d/32.png) [@zaid](https://www.ruby-forum.com/u/zaid)\
**Post date:** [November 6, 2007, 1:03pm UTC](https://www.ruby-forum.com/t/urgent-responds-to-parent-error/119357/4 "2007-11-06T13:03:07Z")

</div>

Now the same mistake that’s giving me firefox is:

window.parent.handleResponse is not a function  
evalScript()

When you run:  
responds\_to\_parent do  
render :update do |page|  
if @success  
page.form.reset ‘uploadPhotoForm’  
else  
page.alert “Photo upload didn’t work! Sorry!”  
end  
end  
end

Guess why?

Thank you
