Marvki

Joined

1,940 Experience
19 Lessons Completed
0 Questions Solved

Activity

Check if you have rescue from routing error in your routes.rb

Something like this:

Rails.application.routes.draw do
match '*unmatched', to: 'application#route_not_found', via: :all
end

That prevents active storage path from accessing your stored image in S3, hence the broken image.

Posted in How to use Uppy with ActiveStorage Discussion

I had the same issue and it turned out I put the Upload link outside of the data-uppy="photo[image] div containter.

Make sure you look into the form file in the source code.

Posted in Vue.js Trello Clone in Rails - Part 8 Discussion

+1

Posted in Rails & Vue.js Trello Clone - Part 2 Discussion

that works up until you have more than one component. Then it'll complain rails-ujs is already loaded.
My work around is to add

import Rails from "rails-ujs"

in each script/component.

This is still problematic with Rails 6.0.0rc1

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

© 2021 GoRails, LLC. All rights reserved.