---
title: "Problems when learning ruby"
author: "tanglei198577"
date: "2010-04-19T15:26:30Z"
tags: []
categories: ["编程语言"]
slug: "problems-when-learning-ruby"
draft: false
lastmod: "2010-04-19T16:34:35Z"
id: 647475
url: "https://tanglei198577.iteye.com/blog/647475"
---

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 =&gt; "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](http://redmine.rubyforge.org/svn/trunk/vendor/plugins/classic_pagination)

 

 5.undefined method \`template\_exists?' for #&lt;BookController

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

 

 

unkown exception always waiting for us -\_-