title: My Rails Javascript manifest file neither compiles nor include any required files
body: <p>I've seen a few posts similar to this but with no solutions, so I figured I would present a more documented problem.</p>
  
  <p><strong>My Problem</strong> JS from manifest file is not including or compiling any JS.</p>
  
  <p>When running my server locally, and opening the JS file I see nothing compiled, just the standard application.js manifest file :</p>
  
  <pre><code>// This is a manifest file that'll be compiled into application.js, which will include all the files
  // listed below.
  //
  // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
  // or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
  //
  // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
  // the compiled file.
  //
  // WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
  // GO AFTER THE REQUIRES BELOW.
  //
  //= require jquery
  //= require jquery_ujs
  //= require underscore
  //= require backbone
  //= require backbone_rails_sync
  //= require backbone_datalink
  //= require backbone/myapp
  //= require_tree .
  </code></pre>
  
  <p>My development.rb :</p>
  
  <pre><code>MyApp::Application.configure do
    config.cache_classes = false  
    config.whiny_nils = true
    config.consider_all_requests_local       = true
    config.action_controller.perform_caching = false
    config.action_mailer.raise_delivery_errors = false
    config.active_support.deprecation = :log
    config.action_dispatch.best_standards_support = :builtin
    config.active_record.mass_assignment_sanitizer = :strict
    config.active_record.auto_explain_threshold_in_seconds = 0.5
    config.assets.compress = false
    config.assets.debug = true
  end
  </code></pre>
  
  <p>My application.rb :</p>
  
  <pre><code>require File.expand_path('../boot', __FILE__)
  
  require 'rails/all'
  
  if defined?(Bundler)
    Bundler.require(*Rails.groups(:assets =&gt; %w(development test)))
  end
  
  module MyApp
    class Application &lt; Rails::Application
      config.encoding = "utf-8"
      config.filter_parameters += [:password]
      config.active_support.escape_html_entities_in_json = true
      config.active_record.whitelist_attributes = true
      config.assets.enabled = true
      config.assets.version = '1.0'
    end
  end
  </code></pre>
  
  <p>My Log :</p>
  
  <pre><code>Started GET "/questions" for 127.0.0.1 at 2013-04-04 08:56:09 -0400
  Processing by QuestionsController#index as HTML
  Completed 200 OK in 204ms (Views: 16.0ms | ActiveRecord: 17.4ms)
  
  Started GET "/assets/application.css" for 127.0.0.1 at 2013-04-04 08:56:09 -0400
  Served asset /application.css - 304 Not Modified (2ms)
  
  Started GET "/assets/application.js" for 127.0.0.1 at 2013-04-04 08:56:09 -0400
  Served asset /application.js - 304 Not Modified (0ms)
  
  Started GET "/assets/favicon.png" for 127.0.0.1 at 2013-04-04 08:56:09 -0400
  Served asset /favicon.png - 304 Not Modified (0ms)
  </code></pre>
  
  <p><strong>To note</strong> , this app was cherry picked from another app as I migrated from a MongoDB build to a Postgres build. So I think that very likely, this has something to do with some <em>uncherrypicked</em> detail.</p>
  
  <p>This issue can be reproduced by doing ..</p>
  
  <ol>
  <li><code>$ rvm use ruby-2.0.0-p0</code></li>
  <li><code>$ rails new project</code></li>
  <li>Create a javascript file with <code>alert('hey')</code> in it in <code>/assets/javascripts/</code></li>
  <li><code>$ rails s</code></li>
  </ol>
  
  <p>I think this issue is because Ruby 2 does not work with Rails yet :(</p>
  
  <hr>
  
  <p>I have this officially pinpointed as Ruby 2 in incompatible with Rails 3.2.6</p>