Urgent! responds_to_parent error

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

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

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

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