Closed kimadactyl closed 7 years ago
Hmm, I just tried this on a fresh-ish rails install and it works fine. Presumably some gem clash... ugh argh.
@kimadactyl I see you're using Rails 4.2 there. Did it work when you tried in a new 5.1 install?
Oh right, yes, that would be it, bit slow today :)
Can you try it in a brand-new Rails 4.2 application without spree?
Just tried it and it's working fine :( do you think it is Spree causing the issue? All I can think is that that uses a mount directive. Maybe a clash?
@kimadactyl mhm... that's interesting... It may be related to #51, #52, and #53.
Are you trying to render the component from a Spree controller?
Not sure what Spree is doing, but if it doesn't inherit from ActionController::Base
, you may need to manually include those helpers.
No, just rendering it from application.html.erb
at the moment. Hmmmmmmmmm.
Edit: looks like it is inheriting, yes: https://github.com/spree/spree/blob/master/core/app/controllers/spree/base_controller.rb
Can you try adding
helper MountainView::ComponentHelper
to your ApplicationController
?
That's got it, thanks again! :1st_place_medal:
:D Great!!
Heya, not sure if linked to #56 or not but after the update I'm getting this. Header is a basic component with nothing fancy going on.
Gemfile: