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: room_types_controller.rb
    path of file: ./repos/SalorHospitality/salor-hospitality/app/controllers
    
    the code of the file until where you have to start completion: # Copyright (c) 2012 Red (E) Tools Ltd.
#
# Permission is hereby granted, free of charge, to any person obtai
    
  def create
    permitted = params.require(:room_type).permit :name
    @room_type = RoomType.new permitted
    @room_type.vendor = @current_vendor
    @room_type.company = @current_company
    if @room_type.save
      redirect_to room_types_path
    else
      render(:new)
    end