nnand85

Joined

230 Experience
2 Lessons Completed
0 Questions Solved

Activity

Posted in Scheduling Posts Discussion

Hi Chris,

I followed this video to add draft and scheduled post to Rails 6 a few weeks ago. I ran into one issue with the Publish At dates showing when first going to the Article page. But when the page was refreshed, it worked properly.

I found at that time, if I changed the following in application.js require("turbolinks").start() to require("turbolinks") - it behaved as you would expect.

I've now add AJAX uploading and needed to add some further jQuery. This made me have to re-add the .start() to the turbolinks require.

Any suggestions on how I can have this work properly with Rails 6?

Thanks,

Nav

Posted in Direct File Uploads to S3: Part 3 Discussion

Looks like the issue was I was using a newer version of Shrine. This version works:

gem 'shrine', '~> 2.3.1'

Posted in Direct File Uploads to S3: Part 3 Discussion

Hey Chris, do you have a tutorial for implementing Active Storage, Trix and S3 for images for Rails 6? Trying to follow these videos but am running into some issues I cannot find solutions online. Currently the two issues I cannot get past are errors running local server for:

Shrine.plugin :direct_upload

and

mount ImageUploader::UploadEndpoint => "/images/upload"
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.