Ruby on rails 资源预编译中的Rails嵌套表单文件错误

Ruby on rails 资源预编译中的Rails嵌套表单文件错误,ruby-on-rails,nested-forms,assets,precompile,Ruby On Rails,Nested Forms,Assets,Precompile,Rails告诉我,application.js中有一些错误 $ rake assets:precompile /usr/bin/ruby1.8 /usr/local/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets rake aborted! Unexpected token: operator (*=) (line: 12013, col: 1, pos: 341357) Error at

Rails告诉我,application.js中有一些错误

$ rake assets:precompile
/usr/bin/ruby1.8 /usr/local/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
rake aborted!
Unexpected token: operator (*=) (line: 12013, col: 1, pos: 341357)

Error
    at new JS_Parse_Error (<eval>:1720:22)
    at js_error (<eval>:1728:15)
    at croak (<eval>:2189:17)
    at token_error (<eval>:2196:17)
    at unexpected (<eval>:2202:17)
    at <eval>:2580:17
    at maybe_unary (<eval>:2665:27)
    at expr_ops (<eval>:2692:32)
    at maybe_conditional (<eval>:2696:28)
    at maybe_assign (<eval>:2720:28)
  (in /home/medy75/Dropbox/Ruby/projectManager_login/ProjectManager/app/assets/javascripts/application.js)
Tasks: TOP => assets:precompile:primary
(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [/usr/bin/ruby1.8 /usr/local/bin/rake asset...]
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
当我删除这一行时,它告诉我它找不到嵌套的表单文件

编辑:

当我生成//=require jquery\u嵌套\u表单时,它会生成以下内容:

$ rake assets:precompile
/usr/bin/ruby1.8 /usr/local/bin/rake assets:precompile:all RAILS_ENV=production            RAILS_GROUPS=assets
rake aborted!
couldn't find file 'prototype_nested_form'
  (in             /home/medy75/Dropbox/Ruby/projectManager_login/ProjectManager/app/assets/javascripts/applica    tion.js:21)
Tasks: TOP => assets:precompile:primary
(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [/usr/bin/ruby1.8 /usr/local/bin/rake asset...]
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)

我确信你的语法是错误的。看看这篇文章:

你的语法正确吗?你为什么用“*”?我被一些芭蕾舞团迷住了。我不知道这是怎么回事。但当我删除“*”时,只有以下问题存在:意外标记:运算符(=)…请使用
/=require-prototype\u-nested\u-form
编辑的问题重试。找不到嵌套表单文件…请阅读我在下面发布的链接-我想您还需要包含它
$ rake assets:precompile
/usr/bin/ruby1.8 /usr/local/bin/rake assets:precompile:all RAILS_ENV=production            RAILS_GROUPS=assets
rake aborted!
couldn't find file 'prototype_nested_form'
  (in             /home/medy75/Dropbox/Ruby/projectManager_login/ProjectManager/app/assets/javascripts/applica    tion.js:21)
Tasks: TOP => assets:precompile:primary
(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [/usr/bin/ruby1.8 /usr/local/bin/rake asset...]
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)