Linking edit button to an ID


#1

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/{{ part.id }}" 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.


#2

Hey @jmartecep! :wave:

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