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| -%>
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