search for: validate_as_attach

Displaying 1 result from an estimated 1 matches for "validate_as_attach".

2007 Nov 09
1
ruby on rails + ajax + iframe image uploader
...refresh entire page. when the image is saved, it will return javascript that embed in a iframe (which is also in my current page) that can load the image into my page ( say in <div id="photo container"> element). however, when upload an invalid file (I use attachment_fu''s validate_as_attachment), the error result is return to iframe due to iframe is the target of form ( form id="uploader" target="my_iframe"> ) I wanna display the error message, but the code is stop after entire page with error is return to my iframe. my code look this : def create begin #s...