![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ruby on rails
文章平均质量分 50
sun030600
这个作者很懒,什么都没留下…
展开
-
RVM错误和解决:"RVM is not a function, selecting rubies with 'rvm use ...' will not w
参考网址:http://blog.sina.com.cn/s/blog_9d6e035501010lol.html When you run a rvm command such as$ rvm use 1.9.3but receive an error message ofRVM is not a function, selecting rubies wi...原创 2013-07-24 17:03:42 · 572 阅读 · 0 评论 -
执行rails server 出现in `autodetect': Could not find a JavaScript runtime.
执行rails serverin `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)解决方案1:在GemFile(文件的位置在项目...原创 2013-07-24 17:18:40 · 348 阅读 · 0 评论 -
rails4.0 create引起的ActiveModel::ForbiddenAttributesError错误
将"params.permit!"(双引号中的内容)添加到create方法内第一行。原创 2013-07-29 14:59:09 · 89 阅读 · 0 评论 -
ruby 中全局变量,实力变量,类变量的区别
Ruby中全局变量,实例变量,局部变量,类变量,Symbol对比八 30th, 2011发表评论 | TrackbackRuby中全局变量,实例变量,类变量,Symbol这些东西经常和其它语言如Java有很大不同,很容易搞混,所以做个总结。 首先是不些命名的约定,注意这些约定是强制性的:格式名称是否需初始化作用范围举例$开头全局变量不...原创 2013-08-07 12:28:49 · 240 阅读 · 0 评论 -
Erro installing mysql2: ERROR: Failed to build gem native extension.
安装Gem时不安装doc# 修改~/.gemrc,加入gem: --no-ri --no-rdoc问题Error installing mysql2: ERROR: Failed to build gem native extension.没有安装必要的mysql库导致:apt-get install libmysql-ruby libmysqlclient-de...原创 2013-09-04 09:17:02 · 422 阅读 · 0 评论