質問

Ruby 1.9.2 Rails 3.2.1とRefineryCMS 2.0.1で新しいRefineryCMSアプリケーションを実行しようとしている場合は、このエラーを生産しています。私のアプリが箱からすぐになっているようにこれを引き起こしていることに興味があります。

開始127.0.0.1で「/」を入手2012-03-11 01:21:11 -0800 Refinery :: PagesController#HTMLとしての処理 パラメータ:{"ロケール"=>:en} 2ms で500個の内部サーバーエラーを完了しました

ActiveRecord :: StatementInvalid(テーブル 'Refinery_roles'を見つけることができませんでした): ActiveRecord(3.2.1)lib / active_record / connection_adapters / sqlite_adapter.rb:470:table_structure' activerecord (3.2.1) lib/active_record/connection_adapters/sqlite_adapter.rb:351:inColumns ' ActiveRecord(3.2.1)lib / active_record / connection_adapters / schema_cache.rb:12:block in initialize' activerecord (3.2.1) lib/active_record/model_schema.rb:228:inyield ' ActiveRecord(3.2.1)lib / active_record / model_schema.rb:228:default' activerecord (3.2.1) lib/active_record/model_schema.rb:228:inColumns ' ActiveRecord(3.2.1)lib / active_record / model_schema.rb:248:column_names' activerecord (3.2.1) lib/active_record/model_schema.rb:261:inColumn_methods_hash ' ActiveRecord(3.2.1)lib / active_record / dynamic_matchers.rb:69:all_attributes_exists?' activerecord (3.2.1) lib/active_record/dynamic_matchers.rb:27:inMethod_missing ' RefineryCMS-Authentication(2.0.1)App / Models / Refinery / role.rb:14:[]' refinerycms-core (2.0.1) lib/refinery/application_controller.rb:53:injust_installed? ' RefineryCMS-Core(2.0.1)lib / freinery / application_controller.rb:73:73: _157096296043845177__Process_action_ _callbacks ' ActiveSupport(3.2.1)lib / active_support / callbacks.rb:405:refinery_user_required?' activesupport (3.2.1) lib/active_support/callbacks.rb:429:in_run_process_action_callbacks ActiveSupport(3.2.1)lib / active_support / callbacks.rb:81:__run_callback' activesupport (3.2.1) lib/active_support/callbacks.rb:385:inProcess_action ' ActionPack(3.2.1)lib / action_controller / metal / rescue.rb:29:PROCESS_Actionのrun_callbacks' actionpack (3.2.1) lib/abstract_controller/callbacks.rb:17:inBlock ActiveSupport(3.2.1)lib / active_support / notifications.rb:123:process_action' actionpack (3.2.1) lib/action_controller/metal/instrumentation.rb:30:inInStrument ' ActiveSupport(3.2.1)lib / active_support / notifications.rb:123:block in instrument' activesupport (3.2.1) lib/active_support/notifications/instrumenter.rb:20:inProcess_action ' ActionPack(3.2.1)lib / action_controller / metal / params_wrapper.rb:205:instrument' actionpack (3.2.1) lib/action_controller/metal/instrumentation.rb:29:inProcess_action ' ActionPack(3.2.1)lib / abstract_controller / base.rb:121:process_action' activerecord (3.2.1) lib/active_record/railties/controller_runtime.rb:18:inProcess ' ActionPack(3.2.1)lib / action_controller / metal.rb:203:process' actionpack (3.2.1) lib/abstract_controller/rendering.rb:45:indispatch ' ActionPack(3.2.1)lib / action_controller / metal.rb:246:dispatch' actionpack (3.2.1) lib/action_controller/metal/rack_delegation.rb:14:inCall ' ActionPack(3.2.1)lib / action_dispatch / routing / route_set.rb:66:block in action' actionpack (3.2.1) lib/action_dispatch/routing/route_set.rb:66:inCall ' Journey(1.0.3)lib / Journey / Router.rb:68:dispatch' actionpack (3.2.1) lib/action_dispatch/routing/route_set.rb:30:inEach ' Journey(1.0.3)Lib / Journey / Router.rb:56:block in call' journey (1.0.3) lib/journey/router.rb:56:incall ' Railies(3.2.1)lib / rails / engine.rb:479:call' actionpack (3.2.1) lib/action_dispatch/routing/route_set.rb:589:inMethod_missing ' Journey(1.0.3)lib / Journey / Router.rb:68:call' railties (3.2.1) lib/rails/railtie/configurable.rb:30:inEach ' Journey(1.0.3)Lib / Journey / Router.rb:56:block in call' journey (1.0.3) lib/journey/router.rb:56:incall ' Warden(1.1.1)lib / warden / manager.rb:35:call' actionpack (3.2.1) lib/action_dispatch/routing/route_set.rb:589:inCatch ' Warden(1.1.1)lib / warden / manager.rb:34:block in call' warden (1.1.1) lib/warden/manager.rb:34:inCall ' ラック(1.4.1)LIB / RACK / ETAG.RB:23:call' actionpack (3.2.1) lib/action_dispatch/middleware/best_standards_support.rb:17:inCall ' ActionPack(3.2.1)lib / action_dispatch / middleware / head.rb:14:call' rack (1.4.1) lib/rack/conditionalget.rb:25:inCall ' ActionPack(3.2.1)lib / action_dispatch / middleware / flash.rb:242:call' actionpack (3.2.1) lib/action_dispatch/middleware/params_parser.rb:21:inContext ' RACK(1.4.1)LIB / RACK / SESSION /抽象/ ID.RB:200:call' rack (1.4.1) lib/rack/session/abstract/id.rb:205:inCall ' Dragonfly(0.9.10)lib / dragonfly / cookie_monster.rb:9:call' actionpack (3.2.1) lib/action_dispatch/middleware/cookies.rb:338:incall ' ActiveRecord(3.2.1)lib / active_record / connection_adapters / abstract / connection_pool.rb:443:呼び出し中のcall' activerecord (3.2.1) lib/active_record/query_cache.rb:64:inBlock ActiveSupport(3.2.1)lib / active_support / callbacks.rb:405:call' actionpack (3.2.1) lib/action_dispatch/middleware/callbacks.rb:28:in__Run_Callback ' ActiveSupport(3.2.1)lib / active_support / callbacks.rb:385:_run__215402801072025143__call__3538488024182103853__callbacks' activesupport (3.2.1) lib/active_support/callbacks.rb:405:inrun_callbacks ' ActionPack(3.2.1)lib / action_dispatch / miledware / callbacks.rb:27:_run_call_callbacks' activesupport (3.2.1) lib/active_support/callbacks.rb:81:inCall ' Dragonfly(0.9.10)lib / dragonfly / middleware.rb:13:call' dragonfly (0.9.10) lib/dragonfly/middleware.rb:13:inForward ' ラックキャッシュ(1.2)lib / rack / cache / context.rb:245:call' rack-cache (1.2) lib/rack/cache/context.rb:136:inlookup ' RACK-CACHE(1.2)lib / lack / cache / context.rb:66:fetch' rack-cache (1.2) lib/rack/cache/context.rb:185:inCall ' RACK-CACHE(1.2)lib / lack / cache / context.rb:136:call!' rack-cache (1.2) lib/rack/cache/context.rb:51:inFetch ' ラックキャッシュ(1.2)lib / lack / cache / context.rb:185:forward' rack-cache (1.2) lib/rack/cache/context.rb:245:inCall! ' RACK-CACHE(1.2)LIB / RACK / CACHE / CONTEXT.RB:51:lookup' rack-cache (1.2) lib/rack/cache/context.rb:66:inCall ' ActionPack(3.2.1)lib / action_dispatch / middleware / debug_exceptions.rb:16:call' actionpack (3.2.1) lib/action_dispatch/middleware/remote_ip.rb:31:incall ' RAILIES(3.2.1)LIB / RAILS / RACK / LOGERGER.RB:26:call' actionpack (3.2.1) lib/action_dispatch/middleware/show_exceptions.rb:56:inCall ' ActionPack(3.2.1)lib / action_dispatch / middleware / request_id.rb:22:call_app' railties (3.2.1) lib/rails/rack/logger.rb:16:inCall ' ラック(1.4.1)LIB / RACK / RUNTIME.RB:17:call' rack (1.4.1) lib/rack/methodoverride.rb:21:inCall ' RACK(1.4.1)LIB / RACK / LOCK.RB:15:call' activesupport (3.2.1) lib/active_support/cache/strategy/local_cache.rb:72:inForward ' ラックキャッシュ(1.2)lib / rack / cache / context.rb:245:call' rack-cache (1.2) lib/rack/cache/context.rb:136:inlookup ' RACK-CACHE(1.2)lib / lack / cache / context.rb:66:fetch' rack-cache (1.2) lib/rack/cache/context.rb:185:inCall ' Railies(3.2.1)lib / rails / engine.rb:479:call!' rack-cache (1.2) lib/rack/cache/context.rb:51:inCall ' ラック(1.4.1)lib / rack / content_length.rb:14:call' railties (3.2.1) lib/rails/application.rb:220:inCall ' Thin(1.3.1)lib / thin / connection.rb:80:call' railties (3.2.1) lib/rails/rack/log_tailer.rb:14:inCatch ' Thin(1.3.1)lib / thin / connection.rb:78:block in pre_process' thin (1.3.1) lib/thin/connection.rb:78:inProcess ' Thin(1.3.1)lib / thin / connection.rb:38:pre_process' thin (1.3.1) lib/thin/connection.rb:53:inrun_ma

歌手 EventMachine(0.12.10)lib / eventmachine.rb:256:receive_data' eventmachine (0.12.10) lib/eventmachine.rb:256:instart ' Thin(1.3.1)lib / thin / server.rb:159:run' thin (1.3.1) lib/thin/backends/base.rb:61:inrun ' ラック(1.4.1)lib / rack / server.rb:265:start' rack (1.4.1) lib/rack/handler/thin.rb:13:instart ' Railies(3.2.1)lib / rails / commands.rb:55:start' railties (3.2.1) lib/rails/commands/server.rb:70:inTap ' Railies(3.2.1)lib / rails / commands.rb:50:block in <top (required)>' railties (3.2.1) lib/rails/commands.rb:50:inrequire ' スクリプト/レール:6: `'
役に立ちましたか?

解決

Railsアプリケーションの内側に 'RAKE DB:Migrate'を実行する必要があります。それはDBの特定の表現の特定の表を登録します。私は昨日同じエラーを得ました、そしてこれはそれを解決しました。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top