Rails 3.2.13、Ruby 1.9.3、bigbluebutton を使用しています。
Gemfile.rb にはこれらの gem が含まれています
gem 'bigbluebutton-api-ruby', :git => 'git://github.com/mconf/bigbluebutton-api-ruby.git'
gem 'bigbluebutton_rails', :git => 'git://github.com/mconf/bigbluebutton_rails.git'
3 か月前にアプリケーションをテストしたところ、バンドル インストール時に、bigbluebutton-api-ruby バージョン 1.2.0 がインストールされ、bigbluebutton_rails バージョン 1.3.0 がインストールされました。
同じ宝石を使用して、両方の宝石バージョンを 1.3.0 に更新しています
レールアプリケーションを使用して、bigbluebutton で必要なものをすべて使用して、すべてを正常に作成しました。
私のseed.rbでは、いくつかのレコードをbigbluebuttonサーバーテーブルに挿入するために次のコードを配置しました。
BigbluebuttonServer.create(
:name => "Online Education",
:url => "http://siteurl/bigbluebutton/api",
:salt => "salt",
:version => "0.8",
:param => "123123123"
)
次のエラーが発生します。
Faraday::Builder is now Faraday::RackBuilder.
Connecting to database specified by database.yml
(5.8ms) SELECT `schema_migrations`.`version` FROM `schema_migrations`
rake aborted!
uninitialized constant ActiveModel::ForbiddenAttributesProtection
/home/prz/.rvm/gems/ruby-1.9.3-p448/bundler/gems/bigbluebutton_rails- 3bcff964062f/app/models/bigbluebutton_server.rb:4:in `<class:BigbluebuttonServer>'
/home/prz/.rvm/gems/ruby-1.9.3-p448/bundler/gems/bigbluebutton_rails-3bcff964062f/app/models/bigbluebutton_server.rb:3:in `<top (required)>'
/home/prz/project/tsxproject/techzoo3.tsxp.0/db/seeds.rb:11:in `<top (required)>'
/home/prz/.rvm/gems/ruby-1.9.3-p448/gems/railties-3.2.13/lib/rails/engine.rb:520:in `load_seed'
bigbluebutton によって更新された gem バージョンのためです。そして、彼らはモデルで強力なパラメータを使用しています。さて、どうすればこの問題を解決できますか。以前、Rails 3.2.13 で強力なパラメーターの問題に直面したことはありません。
反応を待っています。前もって感謝します。