Development discussions around Shopify APIs
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
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?
Hi Neil,
Did you try `render "new", layout: false, content_type: "application/liquid" if Rails.env.production?` ?
Nate
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
User | RANK |
---|---|
5 | |
5 | |
5 | |
4 | |
4 |
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022