Corey Gibson


990 Experience
8 Lessons Completed
0 Questions Solved


Things I am attempting to achive,

  1. Attach File with a js libary such as Dropzone.js
  2. Vaildate file size and type
  3. Crop image using libray such as Cropper.js to achive correct image aspect raito
  4. Submit file using rails Active Storage

I don't belive there is a guide for this any where and I know for a fact there are a lot of people that are really confused on this topic. Active Storage seems to be very limited with what it will do directly(ie... the fact that there is no validation built into active storage).

Any help in this subject would be great.

Posted in Rich text format editor in rails 4

Seems like Trix is having a lot of problems and lack of support for image and image uploading, I have personally ran into a bunch of diffrent issues with Trix and it seems their core does not want to implement a lot of nessacary features such as image orantation and image resizing.

There really dosent seem to me good documentation any where on how to crop images with active storage, I know it can be done just seems pretty complex and would be a cool video

Here is a link to an app I built showcaseing the issue,
Any help would be great I opened an issue on at.js's github.

Posted in Direct File Uploads to S3: Part 2 Discussion

How can I pass the .url(public: true) to a link that is being dynamicly added to the page?

Posted in Sortable Drag and Drop Discussion

Maybe try jus calling the ('#this-id').sortable
and dropping the class from that call.

How can this been done for live direct upload? I watched the aws direct videos but my JS skills arent strong enough to get it to work

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2020 GoRails, LLC. All rights reserved.