title: instance variables added in rails helpers are not available in views (templates)?
body: <p>I am trying to add some instance variables in helpers like the following:</p>
  
  <pre><code>module ApplicationHelper
   def title=(title)
     @title = title
   end
  
   def title
    @title
   end
  end
  </code></pre>
  
  <p>and when I assign title in views/pages/index.html.erb like the following:</p>
  
  <pre><code>&lt;% title = 'Listing Pages' %&gt;
  </code></pre>
  
  <p>and try to show it in the views/layouts/application.html.erb like the following:</p>
  
  <pre><code>&lt;%= title %&gt;
  </code></pre>
  
  <p>it is showing as '' and after some debugging, looks like @title is not being set.</p>
  
  <p><strong>Why are the instance variables added in the helpers not available in the views (templates)?</strong></p>
  
  <p>Thanks in advance.</p>