`

can't convert ActiveRecord::RecordInvalid into String

阅读更多
这里已经比较详细了 但是过程却称不上顺利 开源的东西就是不靠谱呀 所以还是记录一下免得到时候自己忘了

首先装 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 就可以用了
分享到:
评论

相关推荐

    Sortiri是一种干净轻巧的解决方案,用于使ActiveRecord :: Base对象可排序-Ruby开发

    Sortiri是一种干净轻巧的解决方案,用于使ActiveRecord :: Base对象可排序。 描述Sortiri是一种干净轻巧的解决方案,用于使ActiveRecord :: Base对象可排序。 入门Ruby 2.6.0和更高版本上的ActiveRecord 4.2+支持...

    枚举:具有I18n和ActiveRecordMongoid支持的枚举属性

    枚举 具有I18n的枚举属性和ActiveRecord... ActiveRecord: class CreateUsers < ActiveRecord :: Migration def change create_table :users do | t | t . string :sex t . string :role t . timestamps end endend

    otr-activerecord:离轨

    主动记录一种轻松使用ActiveRecord的简便方法。 可与Grape,Sinatra,普通的旧机架甚至是无聊的小脚本一起使用!。 默认值都是非常Railsy的( config/database.yml , db/seeds.rb , db/migrate等),但是您可以...

    stateful_enum:基于ActiveRecord :: Enum构建的非常简单的状态机插件

    stateful_enum是建立在ActiveRecord的内置ActiveRecord :: Enum之上的状态机gem。 安装 将此行添加到您的Rails应用程序的Gemfile中: gem 'stateful_enum' 和捆绑。 动机 您不需要抽象 stateful_enum取决于...

    rails_async_migrations:对ActiveRecord :: Migration的异步支持

    RailsAsyncMigrations ActiveRecord::Migration扩展程序以一种简单直接的方式使您的迁移异步。动机创建该库的目的是为了帮助在技术水平上难以扩展的小型公司。 小型项目不需要异步迁移队列,大公司在遇到扩展问题时...

    activerecord-mysql-unsigned:启用使用整数类型中的“ unsigned”选项来迁移ActiveRecord

    5.0 > ActiveRecord::VERSION >= 3.2 安装 将此行添加到您的应用程序的Gemfile中: gem 'activerecord-mysql-unsigned' 然后执行: $ bundle 或将其自己安装为: $ gem install activerecord-mysql-unsigned ...

    active-record-associations

    string :name t . integer :firm_id end 确保两个模型都继承自ActiveRecord :: Base class Firm < ActiveRecord :: Base #... end class Client < ActiveRecord :: Base #... end 添加您的has_many...

    activerecord-jwt

    ActiveRecord :: Jwt 此ActiveRecord扩展添加了jwt(JSON Web Token)方法 安装 将此行添加到您的应用程序的Gemfile中: gem 'activerecord-jwt' 然后执行: $ bundle 或将其自己安装为: $ gem install ...

    Poseidon:使用 Rack 和 ActiveRecord ORM 的迷你 MVC Web 框架

    ActiveRecord::Migration def up create_table :posts do |t| t.string :title t.string :body t.timestamps end end 创建模型: 模型/post.rb class Post < ActiveRecord::Base end 创建控制器: ...

    activerecord-typedstore:活动记录

    ActiveRecord :: TypedStore 但具有类型化的属性。 安装 将此行添加到您的应用程序的Gemfile中: gem 'activerecord-typedstore' 然后执行: $ bundle 或将其自己安装为: $ gem install activerecord-...

    userstamp, 这个 Rails 插件扩展ActiveRecord.zip

    userstamp, 这个 Rails 插件扩展ActiveRecord Userstamp插件( v-2.0 )概述Userstamp插件扩展了 ActiveRecord::Base,以添加对'创建者','更新程序'和'deleter'属性的自动更新。 它是基于 ActiveRecord::Timesta

    loofah-activerecord:使用丝瓜络和Nokogiri消毒ActiveRecord

    丝瓜络活动记录 地位系统地位大堂CI 代码气候 版眼描述loofah-activerecord将loofahHTML清理功能扩展到Rails ActiveRecord模型中。 在以下查看有关loofah更多信息: : 特征丝瓜络activerecord包含两个ActiveRecord...

    rgeo-activerecord:RGeo ActiveRecord扩展和用于空间连接适配器的工具

    RGeo :: ActiveRecord是一个可选的模块,它为ActiveRecord提供空间扩展,以及一组用于基于RGeo编写空间ActiveRecord适配器的帮助程序。 概括 RGeo是使用Ruby编程语言编写位置感知应用程序的关键组件。 其核心是行业...

    activerecord-commentator:将caller_location(文件名,行号和方法名)添加为SQL注释

    ActiveRecord :: Commentator ActiveRecord :: Commentator将caller_location (文件名,行号和方法名)添加为调用SQL语句SQL注释。 安装 将此行添加到您的应用程序的Gemfile中: gem 'activerecord-commentator'...

    scala-activerecord:Scala的类似于ActiveRecord的ORM库

    Scala ActiveRecord scala-activerecord是Scala的ORM库。 该库的灵感来自Ruby on Rails的ActiveRecord。 它是按照CoC(配置公约),DRY(请勿重复自己)的原则设计的。 最小的例子 样本片段: 模型实施: ...

    php-activerecord:PHP的ActiveRecord实现

    什么是ActiveRecord的简要概述: 活动记录是一种访问数据库中数据的方法。 数据库表或视图被包装到一个类中,因此对象实例被绑定到表中的一行。 创建对象后,保存后会将新行添加到表中。 任何加载的对象都从数据库...

    ROR绿色最新环境(2013/3/10)

    ActiveRecord::ConnectionAdapters::ConnectionManagement ActiveRecord::QueryCache ActionDispatch::Cookies ActionDispatch::Session::CookieStore ActionDispatch::Flash ActionDispatch::ParamsParser ...

    wp-activerecord:WordPress 的 ActiveRecord 实现

    WordPress ActiveRecord WordPress ActiveRecord 实现了可以轻松地检索、更新和删除数据库表的行,而无需费力处理原始 SQL 查询字符串。 这个库的目标是为 CMS WordPress 提供一个小而强大的 ,它应该很容易实现。 ...

    activerecord-collections:创建记录集合,由 ActiveRecord 表示

    最好将ActiveRecord::Collection描述为介于模型(从ActiveRecord::Base扩展而来)、 ActiveRecord::Relation和可枚举的记录集之间的某处。 集合包装并委托给上述对象,在需要时(并且尽可能不频繁地)在发送方法调用...

    activerecord-mti:ActiveRecord MTI

    安装添加到您的Gemfile: gem 'activerecord-mti' 用法考虑以下数据库模式: create_table :subjects do | t | t . string :nameendcreate_table :roles do | t | t . integer :subject_id # MTI fields t . integer...

Global site tag (gtag.js) - Google Analytics