I have a ruby on rails app that has a form in it. Its all working fine locally however I want to make it an app proxy page which involves adding this
render :layout => false, :content_type => 'application/liquid' if Rails.env.production?
which allows the app proxy page to load it into the Shopify environment.
My controller action looks like this
def new render :layout => false, :content_type => 'application/liquid' if Rails.env.production? @product = Product.new end
This however means that my normal erb templates (containing the form) wont parse properly.
Please can someone tell me the correct way to load the normal erb templates into the liquid parser ?
I have gem 'liquid' in my Gemfile.
What am I missing here?
Did you try `render "new", layout: false, content_type: "application/liquid" if Rails.env.production?` ?
Nate | Shopify - Was my reply helpful? Click Like to let me know! - Was your question answered? Mark it as an Accepted Solution - To learn more visit the Shopify Help Center or the Shopify Blog