Render a glass object

How can we render a glass object? For example a glass sphere? Do we have to use ray tracing? Do you know where can I find source code for rendering glass objects?

Your question has been already answered here:

If you arent happy with the answer you may want to elaborate about your problem a bit more.