Linking edit button to an ID


I’m working an app where I would like to edit an entry. I have created a details view, controller and route. The edit button has been created.

< a class=“btn btn-outline-primary” href="/item/edit/{{ }}" role=“button”>Edit

I used the following in the controller:

async edit({ params, view}){

return view.render(‘equipment.details’, {
title: part.description,
part: part

I would like to the edit page to a respective item so I can update.


Hey @jmartecep! :wave:

I don’t get where do you struggle, could you please rephrase your question?