DWG Viewer

Hello,

I would like to write a rails app embedding a GWG viewer in the html
pages for showing Autocad files in the browser.
Is this possible with Ruby on Rails?
and
Which is the best option for doing it in this case?

Thanks in advance.
Juanma