And the answer is: None of the above.
I first confirmed that the problem was in the upload routine. Other redirects worked, both in that controller and others. Since I had removed virtually all the controller code, and the model contained almost nothing, all that was left was the view. And when I removed target="upload_target" from this line: <form action="/my/video/upload" id="uploadByURL" target="upload_target" method="POST"> the redirect started working. At http://www.w3schools.com/tags/tag_form.asp it says: <http://www.w3schools.com/tags/att_form_target.asp>target (_blank _self _parent _top framename ) Deprecated. Specifies where to open the action URL. More of the view: <iframe id="upload_target" name="upload_target" src="#" style="width:0;height:0;border:0px solid #fff;"></iframe> <div class=...etc> <form action="/my/video/upload" id="uploadByURL" target="upload_target" method="POST"> ...form inputs... So I gather that this "invisible" iframe accomodates an uploaded file in some way, but I don't understand it. Apparently the code is incomplete, so if anyone has any ideas, let me know. Should I scrap the custom code for uploading and use Paperclip or another plugin? Remember, this is Rails 2.0.2. Thank you, Matt, Dean, and Kerry, for trying. Scott --~--~---------~--~----~------------~-------~--~----~ SD Ruby mailing list [email protected] http://groups.google.com/group/sdruby -~----------~----~----~----~------~----~------~--~---
