Class: Buggy::Controllers::Show

Inherits:
R
  • Object
show all
Defined in:
lib/buggy.rb

Instance Method Summary collapse

Instance Method Details

#delete(id) ⇒ Object



57
58
59
60
61
# File 'lib/buggy.rb', line 57

def delete id
  @bug = Bug.find(id)
  @bug.close
  render :apishow
end

#get(id) ⇒ Object



51
52
53
54
55
# File 'lib/buggy.rb', line 51

def get id
  @headers['Content-Type'] = 'text/xml charset=utf8'
  @bug = Bug.find(id)
  render :apishow
end