如何在Rails 2.3.5中安装/使用Devise? [英] How do I install / use Devise in Rails 2.3.5?

查看:111
本文介绍了如何在Rails 2.3.5中安装/使用Devise?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图从Github的Devise v.1.2.oauth分支安装,但是我仍然收到错误。

I have tried to install from the v.1.2.oauth branch of Devise on Github, but I still get an error.

如何安装devise gem在rails 2.3.5应用程序?特别是,我想要一个与omniauth一起使用的那个

How do I install the devise gem on a rails 2.3.5 application? In particular, I want the one that works with omniauth

gem install devise -v "1.2" 
ERROR:  Could not find a valid gem 'devise' (= 1.2) in any repository

 config.gem 'devise', :git => 'http://github.com/plataformatec/devise.git',
                   :branch => 'omniauth'

ERROR:  Error installing devise:
    ERROR: Failed to build gem native extension.

c:/Ruby187/bin/ruby.exe extconf.rb
creating Makefile

make
'make' is not recognized as an internal or external command,
operable program or batch file.


推荐答案

支持Rails 2.3.x可以通过安装Devise 1.0.x从v1.0分支。

Support for Rails 2.3.x can be found by installing Devise 1.0.x from the v1.0 branch.

这篇关于如何在Rails 2.3.5中安装/使用Devise?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆