jwhitley/requirejs-rails — Issue #13: Anonymous Mismatched define() Module error with v0.5.0
Author: malandrew
Created: 2011-12-16 06:13:41+00:00
State: open

I saw that you chose to have two javascript includes to include require.js and the app instead of using the RequireJS API approach:

e.g.

<%= requirejs_include_tag %>
<%= javascript_include_tag "application" %>

vs.

<%= requirejs_include_tag 'application' %>

AFAICT, because of this approach, I am getting an anonymous mismatched define() module error:
http://requirejs.org/docs/errors.html#mismatch

"Be sure to load all scripts that call define() via the RequireJS API. Do not manually code script tags in HTML to load scripts that have define() calls in them."

Was there any reason to avoid the "data-main" attribute defined in the require.js docs?