2,290 Experience
22 Lessons Completed
0 Questions Solved


Posted in How to Deploy Rails to Discussion

but what diff between this and hatchbox ?

@chris that an amazing episode never know i can do that with stimulus !!

Can't resolve image into URL: undefined method `attachment_url' for #<#Class:0x00007f9f6098f308:0x00007f9f6493d770>

I spent hours to solve it but nothing !!
Env: ruby : ruby 2.6.5p114 | Rails
what i did :
rails active_storage:install
rails db:migrate
has_one_attached :main_image
<%= f.label :main_image %>
<%= f.file_field :main_image %>
<%= image_tag event.main_image %>

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

© 2024 GoRails, LLC. All rights reserved.