Problems when learning ruby

ruby 专栏收录该内容
1 篇文章 0 订阅

1.The exception is:

    Status: 500 Internal Server Error
    no such file to load -- sqlite3

 solution: need to download  sqlite3.rar ,then uncompressed at the ../ruby/bin folder,then gem install sqlite3-ruby-1.2.3-mswin32.gem

 

2.undefined method `render_text' for # RAILS_ROOT

 

solution:  change render_text "hello world" to : render:text => "hello world"

 

because the version updated now but the tutorial not

 

3.  Status: 500 Internal Server Erro
  no such file to load -- mysql

  solution:gem install mysql at the ../ruby/bin folder

 

4.plugin scaffold

solution:ruby script/plugin install scaffolding
ruby script/plugin install http://redmine.rubyforge.org/svn/trunk/vendor/plugins/classic_pagination

 

 5.undefined method `template_exists?' for #<BookController

 E:\rubyTest\mybook\script>ruby generate scaffold Book title:string description:t
ext buydate:date  will work

 

 

unkown exception always waiting for us -_-

 

  • 0
    点赞
  • 0
    评论
  • 0
    收藏
  • 一键三连
    一键三连
  • 扫一扫,分享海报

©️2021 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值