Class: AttachmentsController

Inherits:
InheritedResources::Base
  • Object
show all
Defined in:
app/controllers/attachments_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



12
13
14
# File 'app/controllers/attachments_controller.rb', line 12

def create
  create! {collection_url}
end

#indexObject



7
8
9
10
11
# File 'app/controllers/attachments_controller.rb', line 7

def index
  index! do |format|
    @attachment = @page.attachments.build
  end
end