Method: ActiveStix::MarkingDefinitionsController#create

Defined in:
app/controllers/active_stix/marking_definitions_controller.rb

#createObject

POST /marking_definitions



26
27
28
29
30
31
32
33
34
# File 'app/controllers/active_stix/marking_definitions_controller.rb', line 26

def create
  @marking_definition = MarkingDefinition.new(marking_definition_params)

  if @marking_definition.save
    redirect_to @marking_definition, notice: 'Marking definition was successfully created.'
  else
    render :new
  end
end