ArgumentError at GET - assign @slides not available in eex template

assign @slides not available in eex template.

Please make sure all proper assigns have been set. If this is a child template, ensure assigns are given explicitly by the parent template as they are not automatically forwarded.

						 <div class="d-flex align-items-center flex-column py-5">

                            <div class="mini-word p-2 m-2">

                            <%= for slide <- @slides do %>

                            <%= IO.inspect %>

               <p class="m-0 text-center font-weight-bold"><%= slide.title %></p>


                            <p class="main-word font-weight-bold">HIGHER EDUCATION FOR SELF-FULFILMENT</p>

                            <a href="apply.html"><button class="btn custom-btn p-3 px-4">APPLY ONLINE</button></a>

i need urgent help pls

Hi there! Could you share the code from your controller action function please?

hi…! how do i get my assign available in my eex template. am actually building a cms i have a page controller and i want to be able to controller my image slider from cms. i have built that but am just having that argument error

Any values you want to use in your template need to be passed into the render function. There are examples in the docs here ->

You will likely want something like render(conn, "show.html", slides: slides)