def create
      @admin = Admin.new(administrator_params)
      respond_to do |format|

        if @admin.save

          profile_images(params, @admin)
          Emailer.profile(@admin).deliver

          format.html { redirect_to admin_administrators_path, notice: I18n.t("controllers.admin.administrators.create.flash.success") }

        else
          format.html {
            # add breadcrumb and set title
            add_breadcrumb I18n.t("generic.add_new_user")
            @action = 'create'
            flash[:error] = I18n.t('generic.validation.no_passed')

            render action: "new"
          }
        end

      end
    end
def create
      @admin = Admin.new(administrator_params)
      respond_to do |format|

        if @admin.save

          profile_images(params, @admin)
          Emailer.profile(@admin).deliver

          format.html { redirect_to admin_administrators_path, notice: I18n.t("controllers.admin.administrators.create.flash.success") }

        else
          format.html {
            # add breadcrumb and set title
            add_breadcrumb I18n.t("generic.add_new_user")
            @action = 'create'
            flash[:error] = I18n.t('generic.validation.no_passed')

            render action: "new"
          }
        end

      end
    end
actually create the new admin with the given param data