Module: Irwi::Extensions::Controllers::WikiPageAttachments
- Included in:
- WikiPages
- Defined in:
- lib/irwi/extensions/controllers/wiki_page_attachments.rb
Instance Method Summary collapse
Instance Method Details
#add_attachment ⇒ Object
3 4 5 6 7 |
# File 'lib/irwi/extensions/controllers/wiki_page_attachments.rb', line 3 def = .new() .save! redirect_to url_for(:path => .page.path, :action => :edit) end |
#remove_attachment ⇒ Object
9 10 11 12 13 |
# File 'lib/irwi/extensions/controllers/wiki_page_attachments.rb', line 9 def = .find(params[:attachment_id]) .destroy redirect_to url_for(:path => .page.path, :action => :edit) end |