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 -_-
本文详细介绍了Ruby编程中遇到的几个常见错误及其解决方案,包括SQLite加载错误、Rails渲染文本错误、MySQL加载错误、插件安装错误和控制器方法未定义错误。通过遵循提供的步骤,开发者可以快速解决这些问题。
3218

被折叠的 条评论
为什么被折叠?



