【问题标题】:Can't import Rails plugin from GitHub无法从 GitHub 导入 Rails 插件
【发布时间】:2011-04-02 16:53:47
【问题描述】:

我想在我的 Rails 应用程序中使用 Typus 插件,但我无法安装它。

$ script/plugin install git://github.com/fesplugas/typus.git
Initialized empty Git repository in /...../vendor/plugins/typus/.git/

$ script/generate typus
Couldn't find 'typus' generator

$ ls -al vendor/plugins/
total 0
drwxr-xr-x  2 ***  staff   68 Aug 23 16:57 .
drwxr-xr-x  3 ***  staff  102 Aug 23 16:37 ..

$ rails -v
Rails 2.3.8

有什么想法吗?

【问题讨论】:

    标签: ruby-on-rails git plugins github


    【解决方案1】:

    看起来有一个非常相似的问题的 open rails 票证,该问题已通过对 ~/.gitconfig 文件进行一些更改来修复。看看这个评论。希望它至少能让你朝着正确的方向前进:

    https://rails.lighthouseapp.com/projects/8994/tickets/3743-scriptplugin-install-gitwhatever-does-nothing#ticket-3743-9

    【讨论】:

    • 太好了,谢谢!从我的 ~/.gitconfig 中删除 cmets 中提到的行可以解决问题。
    猜你喜欢
    • 2021-10-02
    • 1970-01-01
    • 2021-03-13
    • 2020-07-24
    • 1970-01-01
    • 2016-08-14
    • 2021-04-17
    • 2017-10-10
    • 2010-12-06
    相关资源
    最近更新 更多