// Edit renders a edit form for a Activity. This function is
// mapped to the path GET /activities/{activity_id}/edit
Edit renders a edit form for a Activity. This function is
mapped to the path GET /activities/{activity_id}/edit
// Edit renders a edit form for a Activity . This function is // mapped to the path GET / activities / { activity_id } / edit
func (v ActivitiesResource) Edit(c buffalo.Context) error {
	activity := &models.Activity{}
	if err := v.scope(c).Find(activity, c.Param("activity_id")); err != nil {
		return c.Error(http.StatusNotFound, err)
	}
	c.Set("activity", activity)
	return c.Render(http.StatusOK, r.HTML("/activities/edit.plush.html"))
}
func ( v ActivitiesResource ) Edit ( c buffalo . Context ) error { activity := & models . Activity { } if err := v . scope ( c ) . Find ( activity , c . Param ( " " ) ) ; err != nil { return c . Error ( http . StatusNotFound , err ) } c . Set ( " " , activity ) return c . Render ( http . StatusOK , r . HTML ( " " ) ) }
Edit renders a edit form for a Activity.
Edit renders a edit form for a Activity .
// Allocate an empty Activity