how do i reference active storage attachments to get the url

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

how do i reference active storage attachments to get the url

fugee ohu
Message
has_one_attached :attachment

but if i put console.log(url_for(message.attachment)) webpack-dev-server returts compiled with warnings and nothing happens when i submit the form How do I reference the url and other attributes of the attachement?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b8bc2035-343d-4a7d-bc0b-ed92384a2097%40googlegroups.com.