我的 Gemfile 中有这一行:
gem 'calendar_helper', :git => 'git://github.com/topfunky/calendar_helper.git'
一切正常,可以使用:
= calendar(:year => 2013, :month => 3, :first_day_of_week => 1)
但是文件“calendar_helper.rb”在哪里?我在我的项目文件夹中到处搜索它,但我找不到它。我需要它来修改日历。
谢谢。
我的 Gemfile 中有这一行:
gem 'calendar_helper', :git => 'git://github.com/topfunky/calendar_helper.git'
一切正常,可以使用:
= calendar(:year => 2013, :month => 3, :first_day_of_week => 1)
但是文件“calendar_helper.rb”在哪里?我在我的项目文件夹中到处搜索它,但我找不到它。我需要它来修改日历。
谢谢。
尝试: bundle show calendar_helper 或 bundle open calendar_helper
echo $GEM_PATH在终端上做。你会得到rvm gems path. 如果您已rvm在home用户中安装。你会发现gems在~/.rvm/gems. 它将显示gemsets您创建的不同(作为目录)。转到您当前正在使用的一个。在那里你会看到gems目录。在那里,您将拥有您使用的所有宝石。在此您将看到calender_helper包含相关代码的目录。