我有点nube,我试图搭载bokmann的rails3_fullcalendar在rails 3.2中创建一个日历应用程序,但是当我尝试在我的事件中创建一个事件时应用程序,我得到这个错误:Rails 3.2 POST与AJAX创建MassAssignmentSecurity ::错误
ActiveModel::MassAssignmentSecurity::Error in EventsController#create
Can't mass-assign protected attributes: title, description, starts_at(1i), starts_at(2i),
starts_at(3i), starts_at(4i), starts_at(5i), ends_at(1i), ends_at(2i), ends_at(3i), ends_at(4i),
ends_at(5i), all_day
{"utf8"=>"✓",
"authenticity_token"=>"bq3ZUXLm4lYbja9FUafbroFF2Zwt8iMw6GWfvoRuPLA=",
"event"=>{"title"=>"sddfsdf",
"description"=>"df",
"starts_at(1i)"=>"2012",
"starts_at(2i)"=>"6",
"commit"=>"Create Event"}
的解决方案看起来像it should be this但通过与AJAX职位AUTH_TOKEN(它正在发送),但它仍然没有工作。
任何想法?
也许@muribot知道? – ajbraus