scheduler addon
fromherokuを使用してrakeタスクを実行しています。開発では機能しますが、本番環境では失敗します。これがherokuログのスタックトレースです。
2012-10-10T23:30:23 + 00:00 heroku [api]:scheduler@addons.heroku.comによるコマンド `bundle exec rakeDeals--trace`でプロセスを開始します 2012-10-10T23:30:29 + 00:00 heroku [scheduler.1]:コマンド `bundle exec rakeDeals--trace`でプロセスを開始します 2012-10-10T23:30:30 + 00:00 heroku [scheduler.1]:状態が起動から起動に変更されました 2012-10-10T23:30:56 + 00:00 app [scheduler.1]:廃止の警告:ベンダー/プラグインにRails 2.3スタイルのプラグインがあります!これらのプラグインのサポートは、Rails4.0で削除されます。それらを移動してGemfileにバンドルするか、lib / myplugin/*およびconfig/initializers/myplugin.rbとしてアプリにフォールドします。詳細については、リリースノートを参照してください:http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released。(/ app / Rakefile:7から呼び出されます) 2012-10-10T23:30:56 + 00:00 app [scheduler.1]:廃止の警告:ベンダー/プラグインにRails 2.3スタイルのプラグインがあります!これらのプラグインのサポートは、Rails4.0で削除されます。それらを移動してGemfileにバンドルするか、lib / myplugin/*およびconfig/initializers/myplugin.rbとしてアプリにフォールドします。詳細については、リリースノートを参照してください:http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released。(/ app / Rakefile:7から呼び出されます) 2012-10-10T23:30:56 + 00:00 app [scheduler.1]:**取引を呼び出す(first_time) 2012-10-10T23:30:56 + 00:00 app [scheduler.1]:**環境を呼び出す(first_time) 2012-10-10T23:30:56 + 00:00 app [scheduler.1]:**ドキュメントを呼び出す:remove_documents(first_time) 2012-10-10T23:30:56 + 00:00 app [scheduler.1]:**実行環境 2012-10-10T23:31:00 + 00:00 app [scheduler.1]:**ドキュメントを実行します:remove_documents 2012-10-10T23:31:01 + 00:00 app [scheduler.1]:**環境を呼び出す 2012-10-10T23:31:01 + 00:00 app [scheduler.1]:**ドキュメントを実行します:add_documents 2012-10-10T23:31:01 + 00:00 app [scheduler.1]:**ドキュメントを呼び出す:add_documents(first_time) 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:TypeError:匿名クラスをダンプできませんクラス:INSERT INTO "documents"( "body"、 "created_at"、 "merchant_id"、 "updated_at ")VALUES($ 1、$ 2、$ 3、$ 4)RETURNING" id " 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck/rubytypes.rb:16:in `map ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck/rubytypes.rb:16:in `block in to_yaml ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck/rubytypes.rb:6:in `to_yaml ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck/rubytypes.rb:17:in `each ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck/rubytypes.rb:18:in `node_export ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck/rubytypes.rb:18:in `block(3 level)in to_yaml ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck/rubytypes.rb:17:in `each ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck/rubytypes.rb:16:in `map ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck.rb:401:in `emit ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck/rubytypes.rb:16:in `block in to_yaml ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck/rubytypes.rb:17:in `each ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck.rb:401:in `call ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:レーキが中止されました! 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck/rubytypes.rb:17:in `block(2 level)in to_yaml ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck/rubytypes.rb:15:in `to_yaml ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck/rubytypes.rb:17:in `block(2 level)in to_yaml ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb :665:in`exec_query'のブロック 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck/rubytypes.rb:18:in `add ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck/rubytypes.rb:18:in `block(3 level)in to_yaml ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck/rubytypes.rb:16:in `map ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck/rubytypes.rb:16:in `block in to_yaml ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb :280:in`ブロックインログ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck.rb:401:in `emit ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb :1168:`exec_cacheのブロック' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck/rubytypes.rb:18:in `add ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck/rubytypes.rb:17:in `block(2 level)in to_yaml ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck.rb:401:in `quick_emit ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck.rb:119:in `dump ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck/rubytypes.rb:18:in `block(3 level)in to_yaml ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck.rb:401:in `emit ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/query_cache .rb:14:in `insert ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/relation.rb:66 :in `insert' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck/rubytypes.rb:15:in `to_yaml ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck/rubytypes.rb:18:in `add ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck.rb:401:in `call ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck/rubytypes.rb:15:in `to_yaml ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb :1167: `exec_cache ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/timestamp.rb:57 :in `create' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb :468:`type_cast'で 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:403 :in `_run__2196213232156732911__create__4012089935340517551__callbacks ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385 :in `_run_create_callbacks ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/callbacks.rb:268 :in `create' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck/rubytypes.rb:18:in `node_export ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck.rb:401:in `call ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/quoting .rb:74:in `type_cast ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb :20:「楽器」で 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/callbacks.rb:264 :in `block in create_or_update ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385 :in `_run_save_callbacks ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/callbacks.rb:268 :in `block in create' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck.rb:401:in `quick_emit ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405 :in `__run_callback ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck.rb:401:in `quick_emit ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/syck/rubytypes.rb:18:in `node_export ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb :663:in `exec_query ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements .rb:63:in `exec_insert ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements .rb:90:in `insert ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/callbacks.rb:264 :in `create_or_update ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405 :in `__run_callback ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81 :in `run_callbacks ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/validations.rb:50 :「保存」で 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/persistence.rb:366 :in `create' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81 :in `run_callbacks ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb :1167:「マップ」内 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb :275:「ログ」で 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/persistence.rb:347 :in `create_or_update ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/persistence.rb:84 :「保存」で 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:425 :in `_run__2196213232156732911__save__4012089935340517551__callbacks ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/attribute_methods/dirty.rb :22:「保存」で 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/transactions.rb:241 :in `ブロック(2レベル)で保存' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/transactions.rb:295 :in `block in with_transaction_returning_status ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements .rb:192:in `transaction ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208 :`トランザクション'で 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/transactions.rb:293 :in `with_transaction_returning_status ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/transactions.rb:241 :in `block in save' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/transactions.rb:252 :in `rollback_active_record_state! ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/transactions.rb:240 :「保存」で 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.8/lib/active_record/persistence.rb:45 :in `create' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/app/models/worker.rb:54:in `block in add_documents ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/app/models/worker.rb:27:in `each ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/app/models/worker.rb:27:in `add_documents ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/lib/tasks/scrape.rake:9:in `ブロック(2レベル)in ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205 :in `call' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205 :in`実行中のブロック' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200 :「それぞれ」で 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200 :in `execute ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:158 :in`invoke_with_call_chain'のブロック 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:174 :「それぞれ」で 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:151 :in `invoke_with_call_chain ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:176 :in`invoke_prerequisites'のブロック 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/usr/local/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:174 :in `invoke_prerequisites ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:151 :in `invoke_with_call_chain ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:157 :in`invoke_with_call_chain'のブロック 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:144 :in `invoke' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:116 :in `invoke_task ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94 :in `block(2 level)in top_level ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94 :in `block in top_level ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94 :「それぞれ」で 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133 :in `standard_exception_handling ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:88 :in `top_level ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:66 :in `block in run' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133 :in `standard_exception_handling ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:63 :in `run' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/bin/rake:33:in `' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/bin/rake:19:in `load ' 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:タスク:TOP=>取引=>ドキュメント:add_documents 2012-10-10T23:31:18 + 00:00 app [scheduler.1]:/app/vendor/bundle/ruby/1.9.1/bin/rake:19:in `' 2012-10-10T23:31:20 + 00:00 heroku [scheduler.1]:プロセスはステータス1で終了しました 2012-10-10T23:31:20 + 00:00 heroku [scheduler.1]:状態がupからcompleteに変更されました
データベースに挿入しようとしているモデルメソッドは次のとおりです。
def self.add_documents body = Nokogiri :: HTML(open('http://www.someurl.com'))。to_s.to_my_utf8 Merchant_id = Merchant.find(1) Document.create(:merchant_id => Merchant_id、:body => body) 終わり #config / initializers / string.rb 'iconv'が必要 クラス文字列 def to_my_utf8 :: Iconv.conv('UTF-8 // IGNORE'、'UTF-8'、self +'')[0 ..-2] 終わり 終わり
私はこの問題についてどんな援助も望んでいます!
編集:完全なスタックトレースを更新しました。