can you just use
    hidden_field :level, :type
?