Corey Gibson

Joined

1,350 Experience
11 Lessons Completed
0 Questions Solved

Activity

Posted in How to use Devise with Hotwire & Turbo.js Discussion

upgraded to beta .3 and its working

Posted in How to use Devise with Hotwire & Turbo.js Discussion

Any easy way to get this to work with the 'hotwire-rails' gem?

Posted in How to use Hotwire in Rails Discussion

HAHA, I got it to work. I added the libraries folder to a .gitkeep file. all good now!

Posted in How to use Hotwire in Rails Discussion

but it is an empty folder, what should be there?

Posted in How to use Hotwire in Rails Discussion

Yeah.

Posted in How to use Hotwire in Rails Discussion

Has anyone tried to tet a deployment of this with Heroku? I have been getting the "Precompiling assets failed." error,

The trace starts with.
Errno::ENOENT: No such file or directory @ dir_initialize - /tmp/build_00ed1b07/app/assets/javascripts/libraries

Any help before I move to stack overflow?

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.
https://trix-at-js.herokuapp.com/

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 https://github.com/cgibsonmm/Sprout-Free