-
<%= linkTo(widgetsPath(), {class: "btn btn-info"}) { %>
Back to all Widgets
<% } %>
-
<%= linkTo(editWidgetPath({ widget_id: widget.ID }), {class: "btn btn-warning", body: "Edit"}) %>
-
<%= linkTo(widgetPath({ widget_id: widget.ID }), {class: "btn btn-danger", "data-method": "DELETE", "data-confirm": "Are you sure?", body: "Destroy"}) %>
Name: <%= widget.Name %>
Desc: <%= widget.Desc %>