
Ruby
普通网友
这个作者很懒,什么都没留下…
展开
-
Could not find gem 'sass-rails (~> 5.0) x64-mingw32' in any of the gem sources listed in your Gemfil
Could not find gem 'sass-rails (~> 5.0) x64-mingw32' in any of the gem sources listed in your Gemfile or available on this machine.Run `bundle install` to install missing gems.在 windows下搭建Ruby Rails W原创 2015-12-12 16:18:25 · 8421 阅读 · 0 评论 -
Could not find a valid gem 'rails' (>= 0), here is why
很长一段时间之前 Ruby Rails入门——windows下搭建Ruby Rails Web开发环境 ,由于后来将Ruby的安装文件从 C 盘移动到了 D 盘,也修改了 Path 环境变量,ruby 和 gem 命令都能使用,但是 rails 命令无法使用了,所以执行以下命令重新安装:gem install rails却输出以下错误信息:ERROR: Could not find a vali原创 2017-07-11 21:24:26 · 4585 阅读 · 0 评论 -
Ruby on Rails入门——macOS 下搭建Ruby Rails Web开发环境
这里只介绍具体的过程及遇到的问题和解决方案,有关概念性的知识请参考另一篇:Ruby Rails入门——windows下搭建Ruby Rails Web开发环境macOS (我的版本是:10.12.3 )下已经自带了 ruby 和 gem ,但 ruby 的版本有点低。安装 Rails在终端中执行以下命令:sudo gem install rails可能会遇到以下问题:ERROR: Error原创 2017-07-11 18:19:05 · 4054 阅读 · 0 评论 -
macOS Ruby版本需要升级到2.2.2以上
在安装 Ruby on Rails 时遇到问题,提示依赖 ruby 2.2.2 或更高的版本。ERROR: Error installing rails: activesupport requires Ruby version >= 2.2.2.p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px '.PingFang SC'; color:原创 2017-07-11 18:21:08 · 2901 阅读 · 0 评论 -
ruby on rails 禁止转义 HTML
在文章 Ruby On Rails中REST API使用示例——基于云平台+云服务打造自己的在线翻译工具 中,利用ruby的Net::HTTP发起http请求访问IBM Bluemix上的语言翻译服务时,在view层代码中,使用 输出结果,期望输出JSON数据格式,但是输出的内容如下:{"text":"Hola "}双引号都被转义成了:"这个问题原创 2015-12-26 20:37:42 · 4790 阅读 · 7 评论 -
ruby on rails模拟HTTP请求发生错误:end of file reached
在文章 Ruby On Rails中REST API使用示例——基于云平台+云服务打造自己的在线翻译工具 中,利用ruby的Net::HTTP发起http请求访问IBM Bluemix上的语言翻译服务时,提示:end of file reached代码如下:auth = "c9819718-4660-441c-9df7-07398950ea44:qUvrJPqwsgOx";surl = "htt原创 2015-12-26 19:11:45 · 4185 阅读 · 1 评论 -
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
在文章 Ruby On Rails中REST API使用示例——基于云平台+云服务打造自己的在线翻译工具 中,利用ruby的Net::HTTP发起http请求访问IBM Bluemix上的语言翻译服务时,提示:SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed原创 2015-12-26 19:04:17 · 6377 阅读 · 1 评论 -
Routing Error uninitialized constant TransController
在文章 Ruby On Rails中REST API使用示例——基于云平台+云服务打造自己的在线翻译工具 中,从Bluemix上下载的初始Hello World示例代码在本地环境下修改后运行调试时提示:Routing Error uninitialized constant TransControllerTry running rake routes for more information on原创 2015-12-24 19:23:40 · 3931 阅读 · 1 评论 -
Your Ruby version is 2.2.3, but your Gemfile specified 2.2.2
在文章 Ruby On Rails中REST API使用示例——基于云平台+云服务打造自己的在线翻译工具 中,从Bluemix上下载的初始Hello World示例代码在本地环境下运行调试时提示:Your Ruby version is 2.2.3, but your Gemfile specified 2.2.2我本地Ruby安装的是2.2.3版本,而从Bluemix上下载的示例是2.2.2版本原创 2015-12-22 21:07:44 · 6915 阅读 · 1 评论 -
Ruby Rails入门——windows下搭建Ruby Rails Web开发环境
Ruby on Rails 是一个可以使你开发,部署,维护 web 应用程序变得简单的框架。2015年10月编程语言排行榜 Ruby进入TIOBE排行榜前十,可见其流行程序如此之高。本文就帮你打开Ruby on Rails Web开发的大门,助你进入Ruby on Rails的世界,感受不一样的风景。Ruby on Rails完整安装包下载地址:http://railsinstaller.org/原创 2015-12-12 14:03:46 · 19920 阅读 · 3 评论 -
Ruby On Rails中REST API使用示例——基于云平台+云服务打造自己的在线翻译工具
做为一个程序员可能在学习技术,了解行业新动态,解决问题时经常需要阅读英文的内容;而像我这样的英文小白就只能借助翻译工具才能理解个大概;不禁经常感慨,英文对学习计算机相关知识太重要了!最近发现IBM的云平台Blumemix,并且提供语言翻译的服务,感觉不错,就拿来研究学习一下;这里就分享一下我的研究学习过程,如何使用Ruby On Rails调用REST API打造自己的在线翻译工具,并演示如何把它原创 2015-12-15 08:10:05 · 8042 阅读 · 2 评论 -
ERROR: Error installing json:The 'json' native gem requires installed build tools.
ERROR: Error installing json:The 'json' native gem requires installed build tools.C:\ruby\blog>gem install json -v '1.8.3'ERROR: Error installing json:The 'json' native gem requires installed build原创 2015-12-12 16:28:51 · 4449 阅读 · 0 评论 -
Could not find gem 'sqlite3 (>= 0) x64-mingw32' in any of the gem sources listed in your Gemfile
Could not find gem 'sqlite3 (>= 0) x64-mingw32' in any of the gem sources listed in your Gemfile or available on this machine. Run `bundle install` to install missing gems. 在 windows下搭建Ruby Rails Web原创 2015-12-12 14:27:43 · 8306 阅读 · 0 评论 -
Rails 和 Sinatra 的区别是什么?
在 IBM Bluemix 中国版的应用程序中看到Ruby Sinatra,于是想知道它和 Rails 有什么区别,但搜索一番,发现国内几乎没人关注这个问题,可能国内使用Ruby的就比较少。有一个比较好的问题:用 Sinatra 构建网站,你会怀念 Rails 的什么特性?"); background-size: cover; background-position: 0px 2px;">但很可惜原创 2017-08-09 18:09:27 · 2916 阅读 · 0 评论