ruby - ActiveModel::MassAssignmentSecurity::Error in ApiUsersController#create -


I'm not able to create a new API user. I try to create this. I

  Large scale assigns can not be protected: UTF8, authenticity_token, api_user, committed, action, controller   

Here is my model api_user.rb < / P>

  class your user & lt; ActiveRecord :: Base attr_accessible: api_key ,: count ,: email,: name, organization end   

administrator api_users_controller.rb

 < Code> Class APIUs Administrator & lt; ApplicationController #skip_before_filter: verify_authenticity_token def new @api_user = ApiUser.new end DEF @ api_user = ApiUser.create (parameter) render: text = & gt; "# {@ Api_user.id}" End DEF deleted @ api_user = ApiUser.find (parameter [: id]) @ api_user.destroy render: text = & gt; "Successfully Destroyed" End End   

I'm using Ruby 1.9.2 and Rail 3.2.3

  @  

all parameters hash

Comments