打印

windows下的rails2.02环境搭建

本主题由 jerry 于 2008-1-13 13:28 置顶
真是太感谢楼主了

我正为rails 2.0.2 的sqlite3 恼火.....

  仿照书上写的HELLO WORLD应用老是说找不到文件sqlite 这个文件

TOP

总结的不错,加精了

用rails -d mysql myapp 就可以生成默认支持Mysql的database.yml了

按照官方的说法,用sqlite进行单元测试时会快许多

如果个人喜欢mysql,用mysql也是非常容易的
First they ignore you, then they laugh at you, then they fight you, then you win.

TOP

谢谢管理员加精。

TOP

我装了sqlite

有个工程可以(test0306), 端口号 3000
http://localhost:3000 正常显示 再点那个 About your application's environment
黄色框显示的,没有错误
然后我再新建的(ccc)端口号 3001
http://localhost:3001 正常显示 再点那个 About your application's environment
就有错误
MissingSourceFile in Rails/infoController#properties
no such file to load -- sqlite3

在test0306/config 夹子中的routes.rb文件
我加了这句(end 上面加的)  map.root :controller => ''

database.yml
development:
  database: test1project
  adapter: mysql
  host: 127.0.0.1
  username: root
  password: root
都是这样配的
test0306可能是运气好碰对了
这是为什么会这样啊???新建的都不可以

TOP