0
我试图安装虚荣宝石为我的轨道2.3.5应用程序,我想用虚荣的MySQL。一切是伟大的工作,当我和Redis的配置,但是当我更改配置文件来使用mysql:虚荣心不适用于MySql
development:
adapter: active_record
active_record_adapter: mysql
host: localhost
database: vanity
username: root
password:
我得到以下错误:
Showing
/Users/dries/.rvm/gems/ruby-1.8.7-p302/gems/vanity-1.5.3/lib/vanity/templates/_ab_test.erb where line #1 raised:
Vanity::Adapters::ActiveRecordAdapter is not missing constant
VanityConversion! Extracted source (around line #1):
1: <% score = experiment.score %>
2: <table>
3: <caption>
4: <%= experiment.conclusion(score).join(" ") %></caption>
Trace of template
inclusion:
/Users/dries/.rvm/gems/ruby-1.8.7-p302/gems/vanity-1.5.3/lib/vanity/templates/_experiment.erb,
/Users/dries/.rvm/gems/ruby-1.8.7-p302/gems/vanity-1.5.3/lib/vanity/templates/_experiments.erb,
/Users/dries/.rvm/gems/ruby-1.8.7-p302/gems/vanity-1.5.3/lib/vanity/templates/_report.erb
我在环境文件development.rb补充说:
Vanity.playground.establish_connection :development
Vanity.playground.collecting = true
所以它必须做一些与虚荣宝石中包含的适配器,因为redis工作正常。有人知道解决方案?
这已在Vanity 1.8.4中修复,请参阅https://github.com/assaf/vanity/blob/1-8-stable/CHANGELOG – phillbaker