我只是部署我的轨道应用程序的选择,但Javascript使用轮插件不起作用。

我理解,因为我的选择程序是只读的链轮不会的工作。我发现这个 sprockets_on_heroku 插件,应该做的工作,但是我真的不明白如何使用它:

  1. 我加入 config.gem sprockets 在config/环境。rb
  2. 我加入 sprockets 在我的。如果坐文件
  3. 我把这些在选择和轮是成功安装
  4. 我本地跑了 script/plugin install git://github.com/jeffrydegrande/sprockets_on_heroku.git 插件是成功安装

什么都没有改变上的选择,因此我试图安插件对选择与 heroku plugins:install git://github.com/jeffrydegrande/sprockets_on_heroku.git, ,其中返回 sprockets_on_heroku installed但后, heroku restartheroku plugins命令将返回这个:

~/.选择/插件/sprockets_on_heroku/init。rb:1:初始化的不断ActionController(NameError)

从/opt/local/lib/ruby/gems/1.8/gems/选择-1.8.3/bin/../lib/杂业务/件。rb:25:在载'

从/opt/local/lib/ruby/gems/1.8/gems/选择-1.8.3/bin/../lib/杂业务/件。rb:25:在`负载!'

从/opt/local/lib/ruby/gems/1.8/gems/选择-1.8.3/bin/../lib/杂业务/件。rb:22:在`每个'

从/opt/local/lib/ruby/gems/1.8/gems/选择-1.8.3/bin/../lib/杂业务/件。rb:22:在`负载!'

从/opt/local/lib/ruby/gems/1.8/gems/选择-1.8.3/bin/../lib/杂业务/命令。rb:14:`跑'

从/opt/local/lib/ruby/gems/1.8/gems/选择-1.8.3/bin/选择:14

从/opt/local/bin/选择:19:在`载'

从/opt/local/bin/选择:19

我应该怎么做?

凯文

有帮助吗?

解决方案

轮上的选择是作者杰弗里*Degrande回答我的电子邮件。唯一的事情我应该做的是 git push heroku 安装的插件,因此,文件被部署到选择.在短:

  1. 添加 config.gem sprockets 在config/环境。rb
  2. 添加 sprockets 中。如果坐文件
  3. 运行 script/plugin install git://github.com/jeffrydegrande/sprockets_on_heroku.git
  4. 推动改变选择
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top