如何在没有数据库的情况下配置 Ruby on Rails? [英] How to configure Ruby on Rails with no database?
本文介绍了如何在没有数据库的情况下配置 Ruby on Rails?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
对于当前不需要数据库的小型网站项目,使用 Ruby on Rails 会很方便.我知道我可以在 MySQL 中创建一个空数据库并从那里开始,但是有人知道在没有数据库的情况下运行 Rails 的更好方法吗?
It would be convenient to use Ruby on Rails for a small website project that has no current need for a database. I know I could create an empty database in MySQL and go from there, but does anyone know a better way to run Rails without a database?
谢谢
推荐答案
在 environment.rb
文件中取消注释这一行:
Uncomment this line in the environment.rb
file:
config.frameworks -= [ :active_record, :active_resource, :action_mailer]
这篇关于如何在没有数据库的情况下配置 Ruby on Rails?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文