Ash_phoenix.gen.live's code only shows the id attribute

I created a resource, education, with two attributes: :id and :degree. When I created a LiveView with ash_phoenix.gen.live, the code only defined a column for the :id attribute. it was easy to copy/paste/edit the column display line and have the :degree attribute display from the index view. The two lines in the heex are

      <:col :let={{_id, education}} label="Id">{education.id}</:col>
      <:col :let={{_id, education}} label="Degree">{education.degree}</:col>

The second line is the one from my copy/paste/edit. Is there a way to get all the attributes displayed?

It only displays attributes that are marked public?: true, so you’d want to make things public before generating the live view in those scenarios.

Thank you.

I used ash_phoenix.gen.live two times without deleting the assets created the first time I used it. The second time, the command created a second .../dof_app_web/education_live directory in the first such directory that it created. Should I create an issue on GitHub?

Hmm… that sounds strange. Not sure I’m fully following, but happy to look at an issue, yes :bowing_man:

done. run ash_phoenix.gen.live twice for the same resource; first time it makes directory app_app_web/resource_live; the second time it makes directory app_app_web/live/resource_live

Thank you for the report! I will try to address this week :smiley: