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: embeds_controller.rb
    path of file: ./repos/Spina/app/controllers/spina/admin
    
    the code of the file until where you have to start completion: module Spina
  module Admin
    class EmbedsController < AdminController
      def new
        @embeddable = (Spina::Embeds.co
    
      def create
        @embeddable = Spina::Embeds.constantize(embed_type).new(embed_params)

        if @embeddable.valid?
          render turbo_stream: turbo_stream.update(:trix_attachment_html, @embeddable.to_trix_attachment)
        else
          render :new, status: :unprocessable_entity
        end