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
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
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.