Class: Admin::AssetsController

Inherits:
ResourceController
  • Object
show all
Includes:
UploadHandler
Defined in:
app/controllers/admin/assets_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



6
7
8
9
10
11
# File 'app/controllers/admin/assets_controller.rb', line 6

def create
  rendering_upload_response do
    @asset = Asset.create! params[:asset]
    @template.(:li, @template.asset_listing(@asset))
  end
end