Controller template uses wrong view on create fail

Bug #511025 reported by Matt Jones
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rootin Tootin
Fix Released
Low
Unassigned

Bug Description

The create action on a basic generated crud app will have this logic:

  if(_note.save()) {
   flash_notice("The note was saved.");
   respond_with_redirect(_note, "/notes/" ~ to_s(_note.id), 200, ["html", "json", "xml"]);
  } else {
   respond_with(_note, "edit", 200, ["html", "json", "xml"]);
  }

It should respond_with "new" instead of "edit".

Matt Jones (workhorsy)
Changed in rester:
milestone: none → 0.4.0
Matt Jones (workhorsy)
Changed in rester:
status: Confirmed → Fix Committed
Matt Jones (workhorsy)
Changed in rester:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.