Gwyrdain / apprentices-workshop

Creative Commons Zero v1.0 Universal
5 stars 2 forks source link

Deleting a duplicated reset #123

Closed Cordir closed 8 years ago

Cordir commented 8 years ago

I was looking for the 'duplicate this object' button (we have one for mobs, and I thought one was made for objects, too) and hit the "duplicate this reset" instead. It brought me to the reset summary, and yep, there was a duplicate reset of that object in that room.

image

I hit the Delete button to remove the extra reset, and got an error:

ActiveRecord::RecordNotFound in ResetsController#show Couldn't find Reset with 'id'=1277

Extracted source (around line #176): 174 175 176 177 178 179

private def set_reset @reset = Reset.find(params[:id]) end

def set_area

Rails.root: /app

Application Trace | Framework Trace | Full Trace app/controllers/resets_controller.rb:176:in `set_reset' Request

Parameters:

{"area_id"=>"35", "id"=>"1277"} Toggle session dump Toggle env dump Response

Headers:

None

Cordir commented 8 years ago

(When I refreshed the page in my browser, the reset was gone.)

Gwyrdain commented 8 years ago

It was trying to return to the deleted reset, should be fixed now.