Medium badge Carrierwave


Only editable by group admins

  • Last updated November 17, 2018 at 1:18 PM by hankish
  • Evidence only visible to badge awarders
Solve this learning challenge by posting code snippets.
Item 1) Code an example uploader class which would accept PNGs only and would have a thumbnail.

Item 2) Show how you would add the uploader as a field in an example model class.

Item 3) Show the ruby code you would use to set the uploader field on a model instance to a remote url and then save it, causing an upload.