2011-11-08 5 views
4

私はckeditorをレール3に使用しています。これはフォームで既に設定されています。モデルの表示ページに移動するとビュー部分を除いてうまく動作します。太字のフォントやテキストに加えた変更はありません。問題はどこだ?私はフォームのようにこのテキストをレンダリングしているフィールドの横に何かを配置する必要がありますか?あなたがそこにテキストの周りにタグがあるが、それらはエスケープされ見るように、結果であるだけで結構ckeditorとレール3アプリ。書式設定されたテキストが表示されないようにする

<div class="field"> 
    <%= f.cktext_area :comments, :cols => 80, :rows => 20 %> 
</div> 

とshow.html.erbに

<p style="margin-left:5px;text-align:justify;padding:5px;"><%= @car.comments %></p> 


    <p> <em>The 2011 Cadillac Escalade ranks 1 out of 9 Luxury Large SUVs. This ranking is 
based on our analysis of 86 published reviews and test drives of the Cadillac Escalade, and 
our analysis of reliability and safety data.The 2011 Cadillac Escalade is not for shrinking 
violets. It&rsquo;s an SUV for buyers who like to be noticed, but who also need the 
capabilities of a full-sized truck-based SUV &ndash; and are willing to pay to get them. 
</em> 

の作品フォームの

コード。 お時間をいただきありがとうございます。

答えて

13

OK。わかった。私はフィールドの前に生の必要があった。たとえば、<%= [email protected] %>または

など、必要な場所に応じて設定します。 Googleのおかげで:)。

関連する問題