加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails – 如何在Rails 3中安装authlogic?

发布时间:2020-12-17 03:51:55 所属栏目:百科 来源:网络整理
导读:我发现在Rails 3.0版中config / environment.rb文件看起来不同. 此外,当我添加行“config.gem”authlogic“.To environment.rb文件 解决方法 对于Rails 3,您不再编辑config / environment.rb.你编辑Gemfile,添加 gem 'authlogic' 对它,然后做一个 bundle ins
我发现在Rails 3.0版中config / environment.rb文件看起来不同.
此外,当我添加行“config.gem”authlogic“.To environment.rb文件

解决方法

对于Rails 3,您不再编辑config / environment.rb.你编辑Gemfile,添加

gem 'authlogic'

对它,然后做一个

bundle install

更多信息:http://gembundler.com/rails3.html

将有一个Gemfile.lock,它列出了项目中的所有gem及其版本. Bundler的文档:

Whenever your Gemfile.lock changes,
always check it in to version control.
It keeps a history of the exact
versions of all third-party code that
you used to successfully run your
application.

When your co-developers (or you on
another machine) check out your code,
it will come with the exact versions
of all the third-party code your
application used on the machine that
you last developed on (in the
Gemfile.lock). When they run bundle install,bundler will find the Gemfile.lock and skip the dependency resolution step. Instead,it will install all of the same gems that you used on the original machine.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读