title: Rails/facebox_render - Ajax is not defined (facebox's always loading...)
body: <p>I tried to make a simple test with facebox_render and rails 3.</p>
  
  <p>Here are my steps:</p>
  
  <p>1.) Installed Jquery 1.4.2 (Jrails)</p>
  
  <p>2.) Installed the plugin
  rails plugin install git://github.com/ihower/facebox_render.git</p>
  
  <p>3.) and added the following lines: </p>
  
  <p>in my application.html.erb</p>
  
  <pre><code>&lt;head&gt;
    &lt;title&gt;&lt;%= yield(:title) || "Untitled" %&gt;&lt;/title&gt;
    &lt;%= stylesheet_link_tag "reset", "application", "facebox" %&gt;
    &lt;%= javascript_include_tag :defaults, "facebox" %&gt;
    &lt;%= csrf_meta_tag %&gt;
    &lt;%= yield(:head) %&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>and in my application_controller</p>
  
  <pre><code>class ApplicationController &lt; ActionController::Base
    include FaceboxRender
  end
  </code></pre>
  
  <p>When I tried to load something in the facebox, I have only the loader, nothing appears...</p>
  
  <p>for example, in my home/index.html.erb</p>
  
  <pre><code>&lt;%= facebox_link_to "test", :url =&gt; "/images/rails.png" %&gt; 
  </code></pre>
  
  <p>I would be pleased to know where I am wrong, In the doc:</p>
  
  <pre><code>* facebox_link_to helper, it’s will launch loading facebox first, send ajax request second)
  * link_to :remote =&gt; true, form_for :remote =&gt; true …etc Ajax helper (for Rails 3)
  </code></pre>
  
  <p>So I think I'm stuck to send ajax request..</p>
  
  <p>After looking the following post: <a href="https://stackoverflow.com/questions/2658932/how-to-make-facebox-popup-remain-open-and-the-content-inside-the-facebox-changes">How to make facebox popup remain open and the content inside the facebox changes after the submit</a> it seems that I have the same problem: I can see "Ajax is not defined" in yhe firebug console</p>
  
  <p>My js files is however correctly loaded: (as the source code shows)</p>
  
  <pre><code>&lt;link href="/stylesheets/reset.css" media="screen" rel="stylesheet" type="text/css"&gt;
  &lt;link href="/stylesheets/application.css" media="screen" rel="stylesheet" type="text/css"&gt;
  &lt;link href="/stylesheets/facebox.css" media="screen" rel="stylesheet" type="text/css"&gt;
  &lt;script src="/javascripts/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/javascripts/rails.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/javascripts/facebox.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="/javascripts/application.js" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Thanks for any help!</p>