The respond_with methods duplicate formats

Bug #531129 reported by Matt Jones
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Rootin Tootin
Confirmed
Medium
Unassigned

Bug Description

This is ugly and duplicates the formats:

public void edit() {
    _note = Note.find(to_ulong(_request._params["id"].value));
    respond_with(_note, "edit", 200, ["html", "json", "xml"]);
}

They should be specified once in the class, or optional in the method.

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.