You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: bulk_submissions_controller.rb
    path of file: ./repos/sequencescape/app/controllers
    
    the code of the file until where you have to start completion: # encoding: utf-8
# frozen_string_literal: true

require 'formtastic'

class BulkSubmissionsController < ApplicationController
  # WARNING! This filter bypasses security mechanisms in rails 4 and mimics rails 2 behviour.
  # It sh
    
  def create # rubocop:todo Metrics/AbcSize
    begin
      @bulk_submission = BulkSubmission.new(params.fetch(:bulk_submission, {}))
      if @bulk_submission.valid?
        flash.now[:notice] = 'File was processed successfully'
        sub_ids, @sub_details = @bulk_submission.completed_submissions
        @these_subs = Submission.find(sub_ids)
      else
        flash.now[:error] = 'There was a problem with your upload'
        render action: 'new'
      end