NoMethodError in StatusesController index
You may run into undefined method `attr_accessible' error message when adding restrictions on what attributes of the object can or cannot be accessed. This error is due to deprecation of the restriction mechanism in newer Rails 4 framework. You either need to remove it and use restrictions inside your controller not a model
class StatusController<ApplicationController
def create Status.create(status_params)
end private def status_params params.require(:status).permit(:title,:content)
end
end
It is important to note that without setting properties to permit will prevent Rails from adding relationships so you'll need to authorize foreign keys in here as well.