tobyjoiner

Rails 3.1 And .2 Outputting Escaped Html

Recommended Posts

I am sure that I am doing something wrong and I am guessing it is easily fixed. I have the following html outputting:

 

Can you please point me in the right direction?

 

<!-- START Code Block for Chart total_pl_chart -->
   		<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" height="600" id="total_pl_chart" width="800">
   				<param name="allowscriptaccess" value="always"></param>
   				<param name="movie" value="/chart/MSCombi3D.swf"></param>
   				<param name="FlashVars" value="chartWidth=800&amp;chartHeight=600&amp;debugmode=0&amp;dataXML=&lt;chart bgColor=&quot;FFFFFF&quot; outCnvBaseFontColor=&quot;666666&quot; caption=&quot;Total Profit / Loss&quot; formatNumberScale=&quot;0&quot; decimalPrecision=&quot;4&quot; xAxisName=&quot;Month&quot; yAxisName=&quot;Sales&quot; numberPrefix=&quot;$&quot; showNames=&quot;1&quot; showValues=&quot;0&quot; plotFillAlpha=&quot;70&quot; numVDivLines=&quot;10&quot; showAlternateVGridColor=&quot;1&quot; AlternateVGridColor=&quot;e1f5ff&quot; divLineColor=&quot;999999&quot; baseFontColor=&quot;666666&quot; canvasBorderThickness=&quot;1&quot; showPlotBorder=&quot;0&quot; plotBorderThickness=&quot;0&quot; zgapplot=&quot;0&quot; zdepth=&quot;120&quot; exeTime=&quot;1.2&quot; dynamicShading=&quot;1&quot; YZWallDepth=&quot;5&quot; ZXWallDepth=&quot;5&quot; XYWallDepth=&quot;5&quot; canvasBgColor=&quot;FBFBFB&quot; startAngX=&quot;0&quot; startAngY=&quot;0&quot; endAngX=&quot;5&quot; endAngY=&quot;-25&quot; divLineEffect=&quot;bevel&quot;&gt;&lt;categories&gt;&lt;category label=&quot;Jan&quot; /&gt;&lt;category label=&quot;Feb&quot; /&gt;&lt;category label=&quot;Mar&quot; /&gt;&lt;category label=&quot;Apr&quot; /&gt;&lt;category label=&quot;May&quot; /&gt;&lt;category label=&quot;Jun&quot; /&gt;&lt;category label=&quot;Jul&quot; /&gt;&lt;category label=&quot;Aug&quot; /&gt;&lt;category label=&quot;Sep&quot; /&gt;&lt;category label=&quot;Oct&quot; /&gt;&lt;category label=&quot;Nov&quot; /&gt;&lt;category label=&quot;Dec&quot; /&gt;&lt;/categories&gt;&lt;dataset seriesName=&quot;$3.0 Down&quot; color=&quot;CC3333&quot; plotBorderColor=&quot;C8A1D1&quot; renderAs=&quot;line&quot;&gt;&lt;set value=&quot;235594.33638000028&quot; /&gt;&lt;set value=&quot;234661.98344752024&quot; /&gt;&lt;set value=&quot;206449.26355196006&quot; /&gt;&lt;set value=&quot;178837.94903696014&quot; /&gt;&lt;set value=&quot;85770.30343587989&quot; /&gt;&lt;set value=&quot;82176.69611491996&quot; /&gt;&lt;set value=&quot;50124.740000000005&quot; /&gt;&lt;set value=&quot;39938.14&quot; /&gt;&lt;set value=&quot;-60561.55&quot; /&gt;&lt;set value=&quot;12327.88&quot; /&gt;&lt;set value=&quot;-30806.0&quot; /&gt;&lt;set value=&quot;-26129.46&quot; /&gt;&lt;/dataset&gt;&lt;dataset seriesName=&quot;$3.0 Up&quot; color=&quot;006633&quot; plotBorderColor=&quot;C8A1D1&quot; renderAs=&quot;line&quot;&gt;&lt;set value=&quot;389391.1363800003&quot; /&gt;&lt;set value=&quot;149190.54344752023&quot; /&gt;&lt;set value=&quot;32848.38355196008&quot; /&gt;&lt;set value=&quot;23637.629036960163&quot; /&gt;&lt;set value=&quot;24891.423435880162&quot; /&gt;&lt;set value=&quot;-75978.62388507996&quot; /&gt;&lt;set value=&quot;-80150.26000000001&quot; /&gt;&lt;set value=&quot;-108996.86&quot; /&gt;&lt;set value=&quot;-105919.05&quot; /&gt;&lt;set value=&quot;-105032.12&quot; /&gt;&lt;set value=&quot;11681.5&quot; /&gt;&lt;set value=&quot;21870.54&quot; /&gt;&lt;/dataset&gt;&lt;dataset seriesName=&quot;Current&quot; color=&quot;3366CC&quot; plotBorderColor=&quot;C8A1D1&quot; renderAs=&quot;line&quot;&gt;&lt;set value=&quot;312492.73638000025&quot; /&gt;&lt;set value=&quot;191926.26344752026&quot; /&gt;&lt;set value=&quot;142598.82355196006&quot; /&gt;&lt;set value=&quot;124187.78903696015&quot; /&gt;&lt;set value=&quot;47005.86343587986&quot; /&gt;&lt;set value=&quot;11986.53611491997&quot; /&gt;&lt;set value=&quot;-2150.2599999999998&quot; /&gt;&lt;set value=&quot;-18996.86&quot; /&gt;&lt;set value=&quot;-66919.05&quot; /&gt;&lt;set value=&quot;-42632.12&quot; /&gt;&lt;set value=&quot;-2718.5&quot; /&gt;&lt;set value=&quot;-2129.46&quot; /&gt;&lt;/dataset&gt;&lt;/chart&gt;&amp;scaleMode=&amp;lang="></param>
   				<param name="quality" value="high"></param>
   				<param name="wmode" value="window"></param>
   				<param name="bgcolor" value=""></param>
   				<embed FlashVars="chartWidth=800&amp;chartHeight=600&amp;debugmode=0&amp;dataXML=&lt;chart bgColor=&quot;FFFFFF&quot; outCnvBaseFontColor=&quot;666666&quot; caption=&quot;Total Profit / Loss&quot; formatNumberScale=&quot;0&quot; decimalPrecision=&quot;4&quot; xAxisName=&quot;Month&quot; yAxisName=&quot;Sales&quot; numberPrefix=&quot;$&quot; showNames=&quot;1&quot; showValues=&quot;0&quot; plotFillAlpha=&quot;70&quot; numVDivLines=&quot;10&quot; showAlternateVGridColor=&quot;1&quot; AlternateVGridColor=&quot;e1f5ff&quot; divLineColor=&quot;999999&quot; baseFontColor=&quot;666666&quot; canvasBorderThickness=&quot;1&quot; showPlotBorder=&quot;0&quot; plotBorderThickness=&quot;0&quot; zgapplot=&quot;0&quot; zdepth=&quot;120&quot; exeTime=&quot;1.2&quot; dynamicShading=&quot;1&quot; YZWallDepth=&quot;5&quot; ZXWallDepth=&quot;5&quot; XYWallDepth=&quot;5&quot; canvasBgColor=&quot;FBFBFB&quot; startAngX=&quot;0&quot; startAngY=&quot;0&quot; endAngX=&quot;5&quot; endAngY=&quot;-25&quot; divLineEffect=&quot;bevel&quot;&gt;&lt;categories&gt;&lt;category label=&quot;Jan&quot; /&gt;&lt;category label=&quot;Feb&quot; /&gt;&lt;category label=&quot;Mar&quot; /&gt;&lt;category label=&quot;Apr&quot; /&gt;&lt;category label=&quot;May&quot; /&gt;&lt;category label=&quot;Jun&quot; /&gt;&lt;category label=&quot;Jul&quot; /&gt;&lt;category label=&quot;Aug&quot; /&gt;&lt;category label=&quot;Sep&quot; /&gt;&lt;category label=&quot;Oct&quot; /&gt;&lt;category label=&quot;Nov&quot; /&gt;&lt;category label=&quot;Dec&quot; /&gt;&lt;/categories&gt;&lt;dataset seriesName=&quot;$3.0 Down&quot; color=&quot;CC3333&quot; plotBorderColor=&quot;C8A1D1&quot; renderAs=&quot;line&quot;&gt;&lt;set value=&quot;235594.33638000028&quot; /&gt;&lt;set value=&quot;234661.98344752024&quot; /&gt;&lt;set value=&quot;206449.26355196006&quot; /&gt;&lt;set value=&quot;178837.94903696014&quot; /&gt;&lt;set value=&quot;85770.30343587989&quot; /&gt;&lt;set value=&quot;82176.69611491996&quot; /&gt;&lt;set value=&quot;50124.740000000005&quot; /&gt;&lt;set value=&quot;39938.14&quot; /&gt;&lt;set value=&quot;-60561.55&quot; /&gt;&lt;set value=&quot;12327.88&quot; /&gt;&lt;set value=&quot;-30806.0&quot; /&gt;&lt;set value=&quot;-26129.46&quot; /&gt;&lt;/dataset&gt;&lt;dataset seriesName=&quot;$3.0 Up&quot; color=&quot;006633&quot; plotBorderColor=&quot;C8A1D1&quot; renderAs=&quot;line&quot;&gt;&lt;set value=&quot;389391.1363800003&quot; /&gt;&lt;set value=&quot;149190.54344752023&quot; /&gt;&lt;set value=&quot;32848.38355196008&quot; /&gt;&lt;set value=&quot;23637.629036960163&quot; /&gt;&lt;set value=&quot;24891.423435880162&quot; /&gt;&lt;set value=&quot;-75978.62388507996&quot; /&gt;&lt;set value=&quot;-80150.26000000001&quot; /&gt;&lt;set value=&quot;-108996.86&quot; /&gt;&lt;set value=&quot;-105919.05&quot; /&gt;&lt;set value=&quot;-105032.12&quot; /&gt;&lt;set value=&quot;11681.5&quot; /&gt;&lt;set value=&quot;21870.54&quot; /&gt;&lt;/dataset&gt;&lt;dataset seriesName=&quot;Current&quot; color=&quot;3366CC&quot; plotBorderColor=&quot;C8A1D1&quot; renderAs=&quot;line&quot;&gt;&lt;set value=&quot;312492.73638000025&quot; /&gt;&lt;set value=&quot;191926.26344752026&quot; /&gt;&lt;set value=&quot;142598.82355196006&quot; /&gt;&lt;set value=&quot;124187.78903696015&quot; /&gt;&lt;set value=&quot;47005.86343587986&quot; /&gt;&lt;set value=&quot;11986.53611491997&quot; /&gt;&lt;set value=&quot;-2150.2599999999998&quot; /&gt;&lt;set value=&quot;-18996.86&quot; /&gt;&lt;set value=&quot;-66919.05&quot; /&gt;&lt;set value=&quot;-42632.12&quot; /&gt;&lt;set value=&quot;-2718.5&quot; /&gt;&lt;set value=&quot;-2129.46&quot; /&gt;&lt;/dataset&gt;&lt;/chart&gt;&amp;scaleMode=&amp;lang=" allowScriptAccess="always" bgColor="" height="600" name="total_pl_chart" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" src="/chart/MSCombi3D.swf" type="application/x-shockwave-flash" width="800" wmode="window"></embed>
   		</object>

Share this post


Link to post
Share on other sites

I had to add the following to config/application.rb

 

config.autoload_paths += %W(#{config.root}/lib)
config.autoload_paths += Dir["#{config.root}/lib/**/"]

 

 

It is fixed now.

 

I am sure that I am doing something wrong and I am guessing it is easily fixed. I have the following html outputting:

 

Can you please point me in the right direction?

 

<!-- START Code Block for Chart total_pl_chart -->
   		<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" height="600" id="total_pl_chart" width="800">
   				<param name="allowscriptaccess" value="always"></param>
   				<param name="movie" value="/chart/MSCombi3D.swf"></param>
   				<param name="FlashVars" value="chartWidth=800&amp;chartHeight=600&amp;debugmode=0&amp;dataXML=&lt;chart bgColor=&quot;FFFFFF&quot; outCnvBaseFontColor=&quot;666666&quot; caption=&quot;Total Profit / Loss&quot; formatNumberScale=&quot;0&quot; decimalPrecision=&quot;4&quot; xAxisName=&quot;Month&quot; yAxisName=&quot;Sales&quot; numberPrefix=&quot;$&quot; showNames=&quot;1&quot; showValues=&quot;0&quot; plotFillAlpha=&quot;70&quot; numVDivLines=&quot;10&quot; showAlternateVGridColor=&quot;1&quot; AlternateVGridColor=&quot;e1f5ff&quot; divLineColor=&quot;999999&quot; baseFontColor=&quot;666666&quot; canvasBorderThickness=&quot;1&quot; showPlotBorder=&quot;0&quot; plotBorderThickness=&quot;0&quot; zgapplot=&quot;0&quot; zdepth=&quot;120&quot; exeTime=&quot;1.2&quot; dynamicShading=&quot;1&quot; YZWallDepth=&quot;5&quot; ZXWallDepth=&quot;5&quot; XYWallDepth=&quot;5&quot; canvasBgColor=&quot;FBFBFB&quot; startAngX=&quot;0&quot; startAngY=&quot;0&quot; endAngX=&quot;5&quot; endAngY=&quot;-25&quot; divLineEffect=&quot;bevel&quot;&gt;&lt;categories&gt;&lt;category label=&quot;Jan&quot; /&gt;&lt;category label=&quot;Feb&quot; /&gt;&lt;category label=&quot;Mar&quot; /&gt;&lt;category label=&quot;Apr&quot; /&gt;&lt;category label=&quot;May&quot; /&gt;&lt;category label=&quot;Jun&quot; /&gt;&lt;category label=&quot;Jul&quot; /&gt;&lt;category label=&quot;Aug&quot; /&gt;&lt;category label=&quot;Sep&quot; /&gt;&lt;category label=&quot;Oct&quot; /&gt;&lt;category label=&quot;Nov&quot; /&gt;&lt;category label=&quot;Dec&quot; /&gt;&lt;/categories&gt;&lt;dataset seriesName=&quot;$3.0 Down&quot; color=&quot;CC3333&quot; plotBorderColor=&quot;C8A1D1&quot; renderAs=&quot;line&quot;&gt;&lt;set value=&quot;235594.33638000028&quot; /&gt;&lt;set value=&quot;234661.98344752024&quot; /&gt;&lt;set value=&quot;206449.26355196006&quot; /&gt;&lt;set value=&quot;178837.94903696014&quot; /&gt;&lt;set value=&quot;85770.30343587989&quot; /&gt;&lt;set value=&quot;82176.69611491996&quot; /&gt;&lt;set value=&quot;50124.740000000005&quot; /&gt;&lt;set value=&quot;39938.14&quot; /&gt;&lt;set value=&quot;-60561.55&quot; /&gt;&lt;set value=&quot;12327.88&quot; /&gt;&lt;set value=&quot;-30806.0&quot; /&gt;&lt;set value=&quot;-26129.46&quot; /&gt;&lt;/dataset&gt;&lt;dataset seriesName=&quot;$3.0 Up&quot; color=&quot;006633&quot; plotBorderColor=&quot;C8A1D1&quot; renderAs=&quot;line&quot;&gt;&lt;set value=&quot;389391.1363800003&quot; /&gt;&lt;set value=&quot;149190.54344752023&quot; /&gt;&lt;set value=&quot;32848.38355196008&quot; /&gt;&lt;set value=&quot;23637.629036960163&quot; /&gt;&lt;set value=&quot;24891.423435880162&quot; /&gt;&lt;set value=&quot;-75978.62388507996&quot; /&gt;&lt;set value=&quot;-80150.26000000001&quot; /&gt;&lt;set value=&quot;-108996.86&quot; /&gt;&lt;set value=&quot;-105919.05&quot; /&gt;&lt;set value=&quot;-105032.12&quot; /&gt;&lt;set value=&quot;11681.5&quot; /&gt;&lt;set value=&quot;21870.54&quot; /&gt;&lt;/dataset&gt;&lt;dataset seriesName=&quot;Current&quot; color=&quot;3366CC&quot; plotBorderColor=&quot;C8A1D1&quot; renderAs=&quot;line&quot;&gt;&lt;set value=&quot;312492.73638000025&quot; /&gt;&lt;set value=&quot;191926.26344752026&quot; /&gt;&lt;set value=&quot;142598.82355196006&quot; /&gt;&lt;set value=&quot;124187.78903696015&quot; /&gt;&lt;set value=&quot;47005.86343587986&quot; /&gt;&lt;set value=&quot;11986.53611491997&quot; /&gt;&lt;set value=&quot;-2150.2599999999998&quot; /&gt;&lt;set value=&quot;-18996.86&quot; /&gt;&lt;set value=&quot;-66919.05&quot; /&gt;&lt;set value=&quot;-42632.12&quot; /&gt;&lt;set value=&quot;-2718.5&quot; /&gt;&lt;set value=&quot;-2129.46&quot; /&gt;&lt;/dataset&gt;&lt;/chart&gt;&amp;scaleMode=&amp;lang="></param>
   				<param name="quality" value="high"></param>
   				<param name="wmode" value="window"></param>
   				<param name="bgcolor" value=""></param>
   				<embed FlashVars="chartWidth=800&amp;chartHeight=600&amp;debugmode=0&amp;dataXML=&lt;chart bgColor=&quot;FFFFFF&quot; outCnvBaseFontColor=&quot;666666&quot; caption=&quot;Total Profit / Loss&quot; formatNumberScale=&quot;0&quot; decimalPrecision=&quot;4&quot; xAxisName=&quot;Month&quot; yAxisName=&quot;Sales&quot; numberPrefix=&quot;$&quot; showNames=&quot;1&quot; showValues=&quot;0&quot; plotFillAlpha=&quot;70&quot; numVDivLines=&quot;10&quot; showAlternateVGridColor=&quot;1&quot; AlternateVGridColor=&quot;e1f5ff&quot; divLineColor=&quot;999999&quot; baseFontColor=&quot;666666&quot; canvasBorderThickness=&quot;1&quot; showPlotBorder=&quot;0&quot; plotBorderThickness=&quot;0&quot; zgapplot=&quot;0&quot; zdepth=&quot;120&quot; exeTime=&quot;1.2&quot; dynamicShading=&quot;1&quot; YZWallDepth=&quot;5&quot; ZXWallDepth=&quot;5&quot; XYWallDepth=&quot;5&quot; canvasBgColor=&quot;FBFBFB&quot; startAngX=&quot;0&quot; startAngY=&quot;0&quot; endAngX=&quot;5&quot; endAngY=&quot;-25&quot; divLineEffect=&quot;bevel&quot;&gt;&lt;categories&gt;&lt;category label=&quot;Jan&quot; /&gt;&lt;category label=&quot;Feb&quot; /&gt;&lt;category label=&quot;Mar&quot; /&gt;&lt;category label=&quot;Apr&quot; /&gt;&lt;category label=&quot;May&quot; /&gt;&lt;category label=&quot;Jun&quot; /&gt;&lt;category label=&quot;Jul&quot; /&gt;&lt;category label=&quot;Aug&quot; /&gt;&lt;category label=&quot;Sep&quot; /&gt;&lt;category label=&quot;Oct&quot; /&gt;&lt;category label=&quot;Nov&quot; /&gt;&lt;category label=&quot;Dec&quot; /&gt;&lt;/categories&gt;&lt;dataset seriesName=&quot;$3.0 Down&quot; color=&quot;CC3333&quot; plotBorderColor=&quot;C8A1D1&quot; renderAs=&quot;line&quot;&gt;&lt;set value=&quot;235594.33638000028&quot; /&gt;&lt;set value=&quot;234661.98344752024&quot; /&gt;&lt;set value=&quot;206449.26355196006&quot; /&gt;&lt;set value=&quot;178837.94903696014&quot; /&gt;&lt;set value=&quot;85770.30343587989&quot; /&gt;&lt;set value=&quot;82176.69611491996&quot; /&gt;&lt;set value=&quot;50124.740000000005&quot; /&gt;&lt;set value=&quot;39938.14&quot; /&gt;&lt;set value=&quot;-60561.55&quot; /&gt;&lt;set value=&quot;12327.88&quot; /&gt;&lt;set value=&quot;-30806.0&quot; /&gt;&lt;set value=&quot;-26129.46&quot; /&gt;&lt;/dataset&gt;&lt;dataset seriesName=&quot;$3.0 Up&quot; color=&quot;006633&quot; plotBorderColor=&quot;C8A1D1&quot; renderAs=&quot;line&quot;&gt;&lt;set value=&quot;389391.1363800003&quot; /&gt;&lt;set value=&quot;149190.54344752023&quot; /&gt;&lt;set value=&quot;32848.38355196008&quot; /&gt;&lt;set value=&quot;23637.629036960163&quot; /&gt;&lt;set value=&quot;24891.423435880162&quot; /&gt;&lt;set value=&quot;-75978.62388507996&quot; /&gt;&lt;set value=&quot;-80150.26000000001&quot; /&gt;&lt;set value=&quot;-108996.86&quot; /&gt;&lt;set value=&quot;-105919.05&quot; /&gt;&lt;set value=&quot;-105032.12&quot; /&gt;&lt;set value=&quot;11681.5&quot; /&gt;&lt;set value=&quot;21870.54&quot; /&gt;&lt;/dataset&gt;&lt;dataset seriesName=&quot;Current&quot; color=&quot;3366CC&quot; plotBorderColor=&quot;C8A1D1&quot; renderAs=&quot;line&quot;&gt;&lt;set value=&quot;312492.73638000025&quot; /&gt;&lt;set value=&quot;191926.26344752026&quot; /&gt;&lt;set value=&quot;142598.82355196006&quot; /&gt;&lt;set value=&quot;124187.78903696015&quot; /&gt;&lt;set value=&quot;47005.86343587986&quot; /&gt;&lt;set value=&quot;11986.53611491997&quot; /&gt;&lt;set value=&quot;-2150.2599999999998&quot; /&gt;&lt;set value=&quot;-18996.86&quot; /&gt;&lt;set value=&quot;-66919.05&quot; /&gt;&lt;set value=&quot;-42632.12&quot; /&gt;&lt;set value=&quot;-2718.5&quot; /&gt;&lt;set value=&quot;-2129.46&quot; /&gt;&lt;/dataset&gt;&lt;/chart&gt;&amp;scaleMode=&amp;lang=" allowScriptAccess="always" bgColor="" height="600" name="total_pl_chart" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" src="/chart/MSCombi3D.swf" type="application/x-shockwave-flash" width="800" wmode="window"></embed>
   		</object>

Edited by tobyjoiner

Share this post


Link to post
Share on other sites

I have the same problem, but that didn't solve it. It's driving me nuts!

 

I had to add the following to config/application.rb

 

config.autoload_paths += %W(#{config.root}/lib)
config.autoload_paths += Dir["#{config.root}/lib/**/"]

 

 

It is fixed now.

 

 

 

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now