# Preview image with Ruby

**URL:** <https://www.ruby-forum.com/t/preview-image-with-ruby/116219>\
**Category:** Ruby\
**Created:** [October 3, 2007, 4:21pm UTC](https://www.ruby-forum.com/t/preview-image-with-ruby/116219 "2007-10-03T16:21:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luciosan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/9fc29f/32.png) [@luciosan](https://www.ruby-forum.com/u/luciosan)\
**Post date:** [October 3, 2007, 4:21pm UTC](https://www.ruby-forum.com/t/preview-image-with-ruby/116219/1 "2007-10-03T16:21:15Z")

</div>

Hi

Two years ago, I’ve projected in PHP a web site for preview and  
download JPG images; that site, use an APPLET (  
[http://www.lawrencegoetz.com/programs/lgviewer/](http://www.lawrencegoetz.com/programs/lgviewer/) ) for the preview.  
Now, I’m re-project the site with ruby and I don’t know how implement  
it.

I’ve created a views named preview.rhtml with its controller and  
model… but I don’t understand where I’ve to put the APPLET CLASS. In  
the same directory of preview.rhtml or in public?

Thank’s.

---

<div class="post-metadata">

**Author:** ![luciosan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/9fc29f/32.png) [@luciosan](https://www.ruby-forum.com/u/luciosan)\
**Post date:** [October 3, 2007, 5:25pm UTC](https://www.ruby-forum.com/t/preview-image-with-ruby/116219/2 "2007-10-03T17:25:43Z")

</div>

On Oct 3, 2007, at 9:20 AM, luciosan wrote:

> the same directory of preview.rhtml or in public?
> 
> Thank’s.
> 
> –  
> I’m using an evaluation license of nemo since 41 days.  
> You should really try it!  
> [http://www.malcom-mac.com/nemo](http://www.malcom-mac.com/nemo)

This is probably a Rails question, so it should probably be directed  
to the Rails list.  
However, it’s a simple one.  
Put your Java applet in the public directory or a sub-directory of  
public, and link to it in your rhtml view.
