This commit is contained in:
Tangent 2019-06-27 20:13:24 -07:00
parent cbd5e6819c
commit f686d3265e
2 changed files with 3 additions and 3 deletions

View File

@ -21,8 +21,8 @@ class extends lapis.Application
return redirect_to: @url_for "tracks"
POST: =>
if track = update_track(@params)
return redirect_to: @url_for "track", id: track.id
-- return redirect_to: @url_for "track", id: @params.id
-- return redirect_to: @url_for "track", id: track.id -- not sure what's happening to make this error out..
return redirect_to: @url_for "track", id: @params.id
else
return redirect_to: @url_for "tracks"
}

View File

@ -49,4 +49,4 @@ class extends Widget
text "Tags: "
textarea rows: 8, name: "tags", placeholder: "untagged"
br!
input type: "submit", value: "Update"
input type: "submit", value: "Create"