Class: Admin::Configurations::ImagesController

Inherits:
ApplicationController
  • Object
show all
Defined in:
lib/ecrire/app/controllers/admin/configurations/images_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



7
8
9
10
11
12
13
14
15
16
# File 'lib/ecrire/app/controllers/admin/configurations/images_controller.rb', line 7

def create
  @s3 = Admin::Image::S3.new params[:s3]
  @s3.connect
  if @s3.errors.any?
    render 'show' and return
  else
    save_configurations!
    render 'complete'
  end
end

#showObject



3
4
5
# File 'lib/ecrire/app/controllers/admin/configurations/images_controller.rb', line 3

def show
  @s3 = Admin::Image::S3.new
end