# Ajax - attachment\_fu - rmagick and iframe

**URL:** <https://www.ruby-forum.com/t/ajax-attachment-fu-rmagick-and-iframe/119293>\
**Category:** Rails\
**Created:** [November 5, 2007, 9:32pm UTC](https://www.ruby-forum.com/t/ajax-attachment-fu-rmagick-and-iframe/119293 "2007-11-05T21:32:16Z")\
**Posts on this page:** 1\
**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 5, 2007, 9:32pm UTC](https://www.ruby-forum.com/t/ajax-attachment-fu-rmagick-and-iframe/119293/1 "2007-11-05T21:32:16Z")

</div>

Hello

I am uploading images ajax-attachment\_fu-rmagick and an iframe and me  
climb correctly, but when I finish the process and the driver will I  
redirect\_to enc\_url I recharge layer ajax. I tried with redirect\_to  
enc\_url :partial =\> ‘m\_content’ and redirect\_to enc\_url, :update =\>  
‘m\_content’. But neither I recharge …

## rhtml

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

 ![]()

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

def create  
@photo = Photo.new(params[:photo])  
if @photo.save  
resul = Content.find(:all, :conditions =\> “est\_id = '” +  
@session[:current\_user]+ “’”)  
for item in resul do  
urlList \<\< item.title \<\< “=1&”  
end

```
  enc_url = URI.encode(urlList)
  redirect_to enc_url

```

end  
end

m\_coment is layer ajax

Someone knows how to reload layer ajax (m\_content) from the controller?

Thank you
