Confused about how to install Rails plugins

倾然丶 夕夏残阳落幕 提交于 2019-12-03 12:27:27

You're probably on Rails 3. Replace ./script/plugin with rails plugin.

rails plugin install calendar_helper

But the other problem is plugins, unlike gems, need to be installed with a full path. This was also true in Rails 2.x.

rails plugin install https://github.com/topfunky/calendar_helper.git

You should first input text like gem 'calendar_helper' in your Gemfile, and then run bundle install for rails 3.0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!