can't convert ActiveRecord::RecordInvalid into String
来源:互联网 发布:js base64转图片卡住了 编辑:程序博客网 时间:2024/05/22 14:42
参照 http://hi.baidu.com/joyfun/blog/item/8cdcf31fb23bd772f624e4ba.html
这里已经比较详细了 但是过程却称不上顺利 开源的东西就是不靠谱呀 所以还是记录一下免得到时候自己忘了
首先装 ruby 这个没啥 很顺利
ruby 1.9.2自带gem 所以不用单独安装了 单独安装会报错 也安装不上
但是装rails 的时候就出问题了 本来按照rails的官方文档 其实 直接 gem install rails 就行了 默认就是-y选项 自动安装依赖
但是实际情况是 根本没效 只能一个个的装依赖了 过程就不细说了 但是发现对其中的有些包会自动安装依赖
然后就是redmine了 安装 提示 RubyGem version error: rack(1.2.1 not ~> 1.0.1) 这个就比较搞笑了 直接
gem install rack -v=1.0.1 不知道依赖怎么检查的
剩下的就是报
A key is required to write a cookie containing the session data.
Use config.action_controller.session = { :key => "_myapp_session", :secret => "some secret phrase" } in config/environment.rb
把 config.action_controller.session = { :key => "_myapp_session", :secret => "some secret phrase" } 这行加入到 config/environment.rb
中 各种不靠谱呀
然后就是 rake db:migrate RAILS_ENV="production" 找不到 libmysql.dll
继续去下 拷到 ruby的bin目录
http://instantrails.rubyforge.org/svn/trunk/InstantRails-win/InstantRails/mysql/bin/libmySQL.dll
然后就继续
rake db:migrate RAILS_ENV="production" 初始化 数据库
rake redmine:load_default_data RAILS_ENV="production" 填充数据
安装到最后 选择语言之后
rake aborted!
can't convert ActiveRecord::RecordInvalid into String
(See full trace by running task with --trace)
彻底无语 然后就在redmine的官方网站上见到 算了 怪自己眼睛有问题
Ruby 1.9 is not supported yet. You have to use Ruby 1.8.x as stated above.RubyGems 1.3.1 or higher is requiredRake 0.8.3 or higher is requiredRack 1.0.1 is required. If you don't have this exact version, database migration would fail.I18n will be broken if you have a i18n gem >= 0.5.0 installed
撤回1.8.7 结果也是一堆缺dll
后面倒是没啥
rake redmine:load_default_data RAILS_ENV="production"
完成之后redmine 就可以用了
- can't convert ActiveRecord::RecordInvalid into String
- cloud foundry部署报错TypeError: can't convert Hash into String
- ruby操作mysql数据库报错提示can't convert Fixnum into String解决方法
- Can’t convert fixnum to string during rake db:create
- Can't convert argument
- ActiveRecord::RecordInvalid (translation missing: zh, activerecord, errors, messages, record_invalid
- Can't convert argument: null
- 警告: Can't transform property 'acceptEvent' from java.lang.String into java.util.List. Will register
- 警告: Can't transform property 'dispatchDirectory' from java.lang.String into com.bh.entity.DispatchDi
- 警告: Can't transform property 'dispatchDirectory' from java.lang.String into com.bh.entity.DispatchDi
- 解决 Subversion 的 “svn: Can't convert string from 'UTF-8' to native encoding” 错误
- Can't convert string from native encoding to 'UTF-8' problems
- 解决 Subversion 的 “svn: Can't convert string from 'UTF-8' to native encoding” 错误
- svn: Can't convert string from 'UTF-8' to native encoding 的解决办法
- SVN UP 命令出现错误:Can't convert string from 'UTF-8' to native encoding:
- 关于svn: Can't convert string from 'UTF-8' to native encoding的解决办法
- 解决 Subversion 的 “svn: Can't convert string from 'UTF-8' to native encoding” 错误
- svn: Can't convert string from 'UTF-8' to native encoding 的解决办法
- 无奈
- [开发时随手笔记]关于 ProgressMonitorInputStream 不弹出进度条 的 注意事项
- 总结Ubuntu10.04安装Nvidia驱动(Nvidia-Linux-x86-270.41.06.run)的方法
- ubuntu 解压打包命令
- PLDI 2012将在北京召开
- can't convert ActiveRecord::RecordInvalid into String
- 心态
- fedoa14安装kscope-1.6.2
- 元胞自动机与生命游戏
- 钟常慰老师的Ucos_II2.52 源码中文译注
- 软件项目经理新手上路(7) - 再序 - 多点儿人味儿
- 对临界区对象的一点感悟
- 安装独立版本的 Adobe Community Help
- AS3还可以通过CDATA标签声明多行字符串