Class: Buggy::Controllers::Show
- Inherits:
-
R
- Object
- R
- Buggy::Controllers::Show
- Defined in:
- lib/buggy.rb
Instance Method Summary collapse
Instance Method Details
#delete(id) ⇒ Object
48 49 50 51 52 |
# File 'lib/buggy.rb', line 48 def delete id @bug = Bug.find(id) @bug.close render :apideleted end |
#get(id) ⇒ Object
42 43 44 45 46 |
# File 'lib/buggy.rb', line 42 def get id @headers['Content-Type'] = 'text/xml charset=utf8' @bug = Bug.find(id) render :apishow end |