class ListsController < ApplicationController
  def index
    @lists = List.all
  end

  def new
    @list = List.new
  end

  def create
  end

  def edit
  end

  def show
  end

  def update
  end

  def destroy
  end
end

class ListsController < ApplicationController
  def index
    @lists = List.all
  end

  def new
    @list = List.new
  end

  def create
    @list = List.create(list_params)
    redirect_to lists_path
  end

  def edit
  end

  def show
  end

  def update
  end

  def destroy
  end

  private
    def list_params
      params.require(:list).permit(:name)
    end
end

Set proper redirect after List creation
Set proper redirect after List creation
