Skip to content
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

Spree::PagesHelper doesn't have render_snippet method #25

Closed
kevinnio opened this issue May 7, 2019 · 1 comment
Closed

Spree::PagesHelper doesn't have render_snippet method #25

kevinnio opened this issue May 7, 2019 · 1 comment

Comments

@kevinnio
Copy link

kevinnio commented May 7, 2019

While using this extension on Solidus 2.8.2, I get a NoMethod error if I call render_snippet from any view . Looks like the helper is not being loaded automatically.

I had to define render_snippet myself using a decorator to fix the issue.

Any idea why? Has someone encountered the same issue before?

@kevinnio kevinnio changed the title Spree::PagesHelper doesn't have render_snipper method Spree::PagesHelper doesn't have render_snippet method May 7, 2019
@kevinnio
Copy link
Author

Turns out I was missing something.

class ApplicationController < ActionController::Base
  helper Spree::PagesController
end

Closing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant