Forum: Ruby on Rails UPLOAD IMAGE AND PROBLEM IN DISPLAY SAME TIME

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Jahnvi Thaker (Guest)
on 2007-03-29 12:32
hi i want to display image as it is uploaded,

--> i have a render partial form in which i used iframe like this,
======================================================================
 <td align="right">Select Image:</td>
        <td width="100%" align="left">
            <table class="iframeBorder"  align="left" width="100%">
                <tr>
                    <td width="100%" align="center">
                    <iframe src
="/real_estate/editImage?id=<%=@data[0].itemid%>" width="100%"
align="center" frameborder="0" scrolling="yes" >
                    </iframe>
                   </td>
              </tr>
           </table>
       </td>
======================================================================
where image is uploaded, for that on click of update button in editImage
form
i am calling Update method which stores image path in database. and it
done perfectly.

but i want to display the latest image  which is stored in database, but
sometimes it is giving ang sometimes it just gives path.

any other way to do it? i search a lot but mostly are giving rmagick
sollution ..
cant it done without rmagick? if it can then plz tell.

thanks in advance....
This topic is locked and can not be replied to.