Skip to content

ActiveModel::MassAssignmentSecurity::Error in HomeworksController#create #480

@Brainstorm00

Description

@Brainstorm00

Hi everybody,

I have this error when I try to create something with my new activity

Can't mass-assign protected attributes: author_id, user_author_id, owner_id
Rails.root: /Users/project/social_stream-started

Application Trace | Framework Trace | Full Trace
Request

Parameters:

{"utf8"=>"✓",
"authenticity_token"=>"wb37v0nNpMb3dVu3EEPKt3IDdnxXoYhUM9HwzSDdvyk=",
"homework"=>{"type"=>"1",
"activity_object_id"=>"1",
"file_file_name"=>"1",
"file_content_type"=>"1",
"file_file_size"=>"1",
"file_processing"=>"0"},
"commit"=>"Create Homework"}

what does it wants ? :D

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions