title: rails, undefined 'raw' method
body: <p>I am following the michael hartl book and have been doing an optional exercise that I can't seem to figure out.</p>
  
  <p>I have a helper called,</p>
  
  <pre><code>module MicropostsHelper
  
    def wrap(content)
      sanitize(raw(content.split.map{ |s| wrap_long_string(s) }.join(' ')))
    end
    private
      def wrap_long_string(text, max_width = 30)
        zero_width_space = "&amp;#8203;"
        regex = /.{1,#{max_width}}/
        (text.length &lt; max_width) ? text : 
                                    text.scan(regex).join(zero_width_space)
      end
  end
  </code></pre>
  
  <p>which I'm trying to wrap content that should be a string from user input. In my controller I have,</p>
  
  <pre><code>def create
      flash[:notice] = "[][] is...", params[:micropost][:content]
      cleaned = wrap(params[:micropost][:content])
      @micropost = current_user.microposts.build(cleaned)
      ...
  </code></pre>
  
  <p>however I keep getting undefined method 'raw'. Could someone explain why? </p>
  
  <p>is there an api that shows examples of methods?</p>