def create
      @category = Term.new(term_params)

      redirect_url = Term.get_redirect_url(params)
      respond_to do |format|

        if @category.save

          @term_anatomy = @category.create_term_anatomy(:taxonomy => params[:type_taxonomy])
          format.html { redirect_to URI.parse(redirect_url).path, only_path: true, notice: I18n.t("controllers.admin.terms.create.flash.success", term: Term.get_type_of_term(params)) }

        else

          flash[:error] = I18n.t("controllers.admin.terms.create.flash.error")
          format.html { redirect_to URI.parse(redirect_url).path, only_path: true }

        end

      end
    end
def create
      @category = Term.new(term_params)

      redirect_url = Term.get_redirect_url(params)
      respond_to do |format|

        if @category.save

          @term_anatomy = @category.create_term_anatomy(:taxonomy => params[:type_taxonomy])
          format.html { redirect_to URI.parse(redirect_url).path, only_path: true, notice: I18n.t("controllers.admin.terms.create.flash.success", term: Term.get_type_of_term(params)) }

        else

          flash[:error] = I18n.t("controllers.admin.terms.create.flash.error")
          format.html { redirect_to URI.parse(redirect_url).path, only_path: true }

        end

      end
    end
create tag or category - this is set within the form