-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alchemy pages helper disappears on checkout, 500 error #61
Comments
ok so I entered debugger in my template to try and understand this a little better.
I'm not familiar enough with Rails to know this, but I have an intuition that perhaps the helper method is doing something to dis-include these helpers? I'll mess with this when I have time. As a workaround the obvious (suboptimal) solution is to just check the method is defined in my template. |
I had a similar problem before. This seems to happen when rendering the menu from a "nested" controller class. |
I was able to resolve the problem by simply adding the helpers into my application like so:
I added the ElementsHelper as well since I was having an issue where that helper was not showing up in my Orders page. Strangely enough, the elements had previously been rendering. I'm not certain what exactly changed. This certainly works, I just don't know if it's the most correct solution. |
Either that or include the modules in the controllers you are using. It should already be dealt with in this gem. If this does not work by explicitly requiring |
Describe the bug
We are building an "Alchemy in Solidus" site.
I used
PagesHelper#render_menu
to display menus on a solidus site, usingbundle exec rails g solidus:views:override
. The menus render on product, taxon, cart pages but at/checkout/address
(first step of checkout) we get the error:To Reproduce
Steps to reproduce the behavior:
Expected behavior
The menus should render on the checkout page and the
render_menu
function should be available in the checkout pages.Screenshots
None
Gems in your
Gemfile
:alchemy-solidus (3.0.2)
alchemy_cms (4.4.4)
solidus (2.9.5)
Additional context
I don't know where to look to sort this out and PR it. I am not sure where the helpers get passed to Solidus. I can investigate if pointed in the right direction.
The text was updated successfully, but these errors were encountered: