flash - Rails route rewriting -


I think this is a simple question. I am using this useful flash document reader. Is embedded in one. But when I click on a link on their toolbar to show the document in a new browser, it indicates the following link:

intels / FlexPrower .swf? Zoom Time = 0.5 & amp; FitPageOnLoad = False & amp; PrintEnabled = false & amp; SwfFile =% 2FPaper.swf

If that does not work, I get the following error:

ActiveRecord :: IntelsController # Show in RecordNotFound

Intel could not access

ID = FlexPaperViewer

but if I remove "intels" from the path then the url looks like this:

This works fine.

My question is, what is the best way to handle it? Can you write the path that rewrites a URL that starts with intels / FlexPaperViewer.swf and can remove the intels prefix?

Gambling A thought, how about keeping FlexPaperViewer.swf inside public / intels folder?

Then the directory structure will be

  & lt; Project Directory & gt; / Public / intels / FlexPaperViewer .swf  

Doing this will correct the link. It seems easy to do this in such a way that it will be helpful.

Edit

Another option is to see how the link originated, perhaps there is a parameter that you can set when embedding Are FlexPaper

I do not know about any route revision which is what you want. Perhaps someone else can help on this.


Comments