*sigh*
This commit is contained in:
parent
cbd5e6819c
commit
f686d3265e
4
app.moon
4
app.moon
@ -21,8 +21,8 @@ class extends lapis.Application
|
|||||||
return redirect_to: @url_for "tracks"
|
return redirect_to: @url_for "tracks"
|
||||||
POST: =>
|
POST: =>
|
||||||
if track = update_track(@params)
|
if track = update_track(@params)
|
||||||
return redirect_to: @url_for "track", id: track.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
|
return redirect_to: @url_for "track", id: @params.id
|
||||||
else
|
else
|
||||||
return redirect_to: @url_for "tracks"
|
return redirect_to: @url_for "tracks"
|
||||||
}
|
}
|
||||||
|
@ -49,4 +49,4 @@ class extends Widget
|
|||||||
text "Tags: "
|
text "Tags: "
|
||||||
textarea rows: 8, name: "tags", placeholder: "untagged"
|
textarea rows: 8, name: "tags", placeholder: "untagged"
|
||||||
br!
|
br!
|
||||||
input type: "submit", value: "Update"
|
input type: "submit", value: "Create"
|
||||||
|
Reference in New Issue
Block a user