To continue receiving payouts, you need to secure your account by turning on two-step authentication. If two-step authentication is not turned on your payouts will be paused. Learn more

How to Render a Ruby on Rails Form in an App Proxy Page

Shopify Partner
6 0 0

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 =

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?



Reply 1 (1)
Shopify Staff (Retired)
Shopify Staff (Retired)
97 0 8

Hi Neil,

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