Sha256: 822788cf02c1630b493f817c4ec9f3917240bbf9b2a947bce4e2057aef2950a1

Contents?: true

Size: 190 Bytes

Versions: 5

Compression:

Stored size: 190 Bytes

Contents

class AvatarsController < ApplicationController

  def create

    Avatar.create params.require(:avatar).permit(:uploaded_file)

    redirect_to request.referer, change: 'avatar'

  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
digital_heroes_startkit-0.1.1.4 app/controllers/avatars_controller.rb
digital_heroes_startkit-0.1.1.3 app/controllers/avatars_controller.rb
digital_heroes_startkit-0.1.1.2 app/controllers/avatars_controller.rb
digital_heroes_startkit-0.1.1.1 app/controllers/avatars_controller.rb
digital_heroes_startkit-0.1.1 app/controllers/avatars_controller.rb