def create
      @user_board = UserBoard.new(
        name: params[:board][:name],
        user_id: @user.id,
        encrypted_password: params[:encrypted_password],
        is_admin: true
      )
      if @user_board.save
        render json: @user_board, status: :created
      else
        render json: @user_board.errors.full_messages, status: 422
      end

    end
def create
      @user_board = UserBoard.new(
        name: params[:board][:name],
        user_id: @user.id,
        encrypted_password: params[:encrypted_password],
        is_admin: true
      )
      if @user_board.save
        render json: @user_board, status: :created
      else
        render json: @user_board.errors.full_messages, status: 422
      end

    end
Creates board belonging to current user.

 `POST /api/boards`