0

I am using Rails 3.2.13, Ruby 1.9.3 and bigbluebutton.

Gemfile.rb contains these gems

gem 'bigbluebutton-api-ruby', :git => 'git://github.com/mconf/bigbluebutton-api-ruby.git'
gem 'bigbluebutton_rails', :git => 'git://github.com/mconf/bigbluebutton_rails.git'

I tested application 3 months before, on bundle install, bigbluebutton-api-ruby version was 1.2.0 was installed and bigbluebutton_rails version 1.3.0 was installed.

Now with same gem i am getting both the gem version updated to 1.3.0

I successfully created everything with whatever we required in bigbluebutton with rails application.

In my seed.rb, i placed following codes to insert some records into bigbluebutton servers table.

BigbluebuttonServer.create(
:name => "Online Education", 
:url => "http://siteurl/bigbluebutton/api", 
:salt => "salt", 
:version => "0.8",
:param => "123123123"
)

I am encounter following error:

 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'

It is because of gem version updated by bigbluebutton. And they have used strong parameter in model. Now how can i solve this issue. Previous i never faced strong parameter issue with Rails 3.2.13.

Waiting for your response. Thanks in advance.

siv rj
  • 1,451
  • 1
  • 14
  • 31
  • You are getting ForbiddenAttributesProtection. Check for strong parameters. – Amrit Dhungana Jun 12 '14 at 16:46
  • hey @AmritdeepDhungana: i already understand this, app/models/bigbluebutton_server.rb is not in my application. I have used it with bigbluebutton api. In api, ActiveModel::ForbiddenAttributesProtection is there which i cannot change. If possible please tell me. – siv rj Jun 12 '14 at 17:55
  • Actually i used previous version of bigbluebutton-api-ruby 1.2.0. It works again fine. Now I have another solution posted by leonardodaronco. Thanks every body. – siv rj Jun 13 '14 at 18:41

1 Answers1

2

Just add gem "strong_parameters" to your Gemfile and it should solve the problem. Since the version you're using of BigbluebuttonRails now also uses resque, I'd suggest you add gem "resque" to your Gemfile too.

  • Thank you so much. Acutally i already tried those gem. But i did not give attention. Now I am clear. I like bigbluebutton so much. – siv rj Jun 13 '14 at 18:38