title: Escaping double quotes in Rails link_to
body: <p>I am new to the Rails framework and Ruby language in general but I do have some programming and MVC experience.  I am trying to output a link using rails' link_to method.  However in the HTML this link is inside another set of double quotes.  I need to escape the quotes produced by rails in the  tag.  </p>
  
  <p>I have tried google and only found information for javascript escaping which didnt help. I tried using a h(%[]) method that was mentioned a few times but then the link was not created and the actual words link_to were out put.</p>
  
  <p>Does anyone know how I can escape the double quotes in the hyperlink tag created by rails or switch it to use a single quote?</p>
  
  <p>Actual Code</p>
  
  <pre><code>&lt;% @properties = Property.all 
                              @properties.each do |property| %&gt;
                              &lt;img src="images/img&lt;%= property.id %&gt;.jpg" alt="" title="&lt;strong&gt;&lt;%= property.address %&gt;&lt;/strong&gt;&lt;span&gt;9 rooms, 3 baths, 6 beds, building size: 5000 sq. ft. &amp;nbsp; &amp;nbsp; &amp;nbsp; Price: $ 600 000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;%= link_to "Read More", property) %&gt;&lt;/span&gt;"&gt;
                              &lt;% end %&gt;
  </code></pre>
  
  <p>Output</p>
  
  <pre><code>&lt;img src="images/img1.jpg" alt="" title="&lt;strong&gt;50 Craft LAne&lt;/strong&gt;&lt;span&gt;9 rooms, 3 baths, 6 beds, building size: 5000 sq. ft. &amp;nbsp; &amp;nbsp; &amp;nbsp; Price: $ 600 000 &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href="/properties/1"&gt;Read More&lt;/a&gt;&lt;/span&gt;"&gt;
  </code></pre>
  
  <p>The first double quote in the hyperlink is pairing with the title=" and then everything is off</p>