Topic: simpleviewer and rails 2.0
I am trying to use simpleviewer with a rails app without much success.
The problem stems from (I believe) from the code:
In rails 2.0 the page for the view is an html.erb extension and that does not seem to recognise the code from window.onload onwards.
That is to say the text is all greyed out as if commented out and I have tried it with and without the comments that are in there.
If I save the file as a standard html or htm them it will work but does anyone know a way to get the above code to work with html.erb
Any help would be appreciated especially in regard to where to
place the simpleviewer files in relation to rails opinionated file structure.