Class: Admin::Configurations::ImagesController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Admin::Configurations::ImagesController
- Defined in:
- lib/ecrire/app/controllers/admin/configurations/images_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
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 |
#show ⇒ Object
3 4 5 |
# File 'lib/ecrire/app/controllers/admin/configurations/images_controller.rb', line 3 def show @s3 = Admin::Image::S3.new end |