title: rails erb line width
body: <p>i currently try to call a javascript method with link_to_function.</p>
  
  <pre><code>&lt;%= link_to_function( r.cls.to_s.split("#").last ,
  "loadDetails('#{Base64.encode64(r.cls.to_s).strip}');"  )%&gt;
  </code></pre>
  
  <p>The problem is i get a JS error:</p>
  
  <pre><code>Uncaught SyntaxError: Unexpected token ILLEGAL 
  </code></pre>
  
  <p>I assume this happens because rails puts some line breaks into my code:</p>
  
  <pre><code>    onclick="loadDetails('aHR0cDovL3d3dy5vd2wtb250b2xvZ2llcy5jb20vT250b2xvZ3kxMzUxNzAy
  
  NTA5Lm93bCNjMzM=');; return false;"
  </code></pre>
  
  <p>I would like that link_to_funktion prints out linke-break-free output.</p>
  
  <p>Do you know how to archieve this?</p>
  
  <p><strong>PS:</strong></p>
  
  <p>When i escape javascript it still returns: </p>
  
  <pre><code>Uncaught SyntaxError: Unexpected token ILLEGAL 
  </code></pre>