I'm building a shopify app-proxy using ruby on rails. i’m using the shopify_app gem.
in my controller actions i have the following set:
render layout: false, content_type: ‘application/liquid’
,so that the app is embedded within the shop’s layout/theme.liquid.
my question is how do i then pull assets into the app? I’ve tried including them manually into the template files using:
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
but alas, i get 404 not found errors. currently i’m putting asset files into the store’s theme which doesn’t seem ideal.