Forum: Ruby on Rails Rails paths when loading a Java applet

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Greg D. (Guest)
on 2009-04-08 01:06
(Received via mailing list)
I've built a Java applet and now I'm trying to load it using Rails,
it's failing to load.

The problem seems to be that Rails is changing the dots in my
classpath to forward slashes which then cause my applet's dependencies
to not load.  Here's an example dependency from the logs that's

ActionController::RoutingError (No route matches
"/com/objex/panywhere/Pedigree_RS_Bundle.class" with {:method=>:get}):

So how can I tell Rails that I'm loading a Java applet and to not mess
with anything in my <object> and <embed> tags?

Here's my embed code that works perfectly outside of Rails:

<object classid="clsid:CAFEEFAC-0016-0000-0000-ABCDEFFEDCBA"
<param name="archive" value="/artemis.jar" />
<param name="code" value="artemis.ProgenyAnywhereWrapper.class" />
<param name="codebase" value=".">
<embed type="application/x-java-applet"
  <noembed>No Java Support.</noembed>

Surely I don't have to make custom routes for every single one of my
applet dependencies ?


Greg D.
Ian Randolph (Guest)
on 2013-05-02 23:35
(Received via mailing list)
Did you ever figure this out? I am having the same problem and can't
find a
good solution anywhere.
Daniel Hatcher (Guest)
on 2013-05-02 23:46
(Received via mailing list)
No one has given me a viable response yet. I will keep you in the loop
if i
find anything out.
This topic is locked and can not be replied to.