title: uninitialized constant ActionView::CompiledTemplates::FB Ruby on Rails
body: <p>I am using ruby 1.9.3 Rails 3.2.13 for making an app that can post on facebook wall by using a dialog box (feed dialog)</p>
  
  <p>In my view -</p>
  
  <pre><code>&lt;%
  FB.ui(
    {
     method: 'feed',
     name: 'The Facebook SDK for Javascript',
     caption: 'Bringing Facebook to the desktop and mobile web',
     description: (
        'A small JavaScript library that allows you to harness ' +
        'the power of Facebook, bringing the user\'s identity, ' +
        'social graph and distribution power to your site.'
     ),
     link: 'https://developers.facebook.com/docs/reference/javascript/',
     picture: 'http://www.fbrell.com/public/f8.jpg'
    },
    function(response) {
      if (response &amp;&amp; response.post_id) 
        alert('Post was published.')
       else 
        alert('Post was not published.')
      end
    }
  );
  %&gt;
  </code></pre>
  
  <p>IN MY controller</p>
  
  <pre><code>def func
  cache_expire = 1.year
  response.headers["Pragma"] = "public"
  response.headers["Cache-Control"] = "max-age=#{cache_expire.to_i}"
  response.headers["Expires"] = (Time.now + cache_expire).strftime("%d %m %Y %H:%I:%S %Z")
  render :layout =&gt; false, :inline =&gt; "&lt;script src='//connect.facebook.net/en_US/all.js'&gt;&lt;/script&gt;"
    redirect_to root_path
  end
  </code></pre>
  
  <p>It is given this error on my view page -</p>
  
  <pre><code>uninitialized constant ActionView::CompiledTemplates::FB
  </code></pre>
  
  <p>on FB.ui line..
  please help I am new with this!</p>