title: How to pass variables to render_to_string?
body: <p>Trying to do the following</p>
  
  <pre><code>@message = render_to_string ( :sender =&gt; sender, :template =&gt; "template" )          
  </code></pre>
  
  <p>But when accessing @sender in template it turns out to be nil:NilClass. Double checked if I pass the right variable and it's totally fine. Maybe there are other way to pass variables to render_to_string?</p>