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

undefined local variable or method `cart_link_url' #2

Closed
harin opened this issue Dec 19, 2015 · 5 comments
Closed

undefined local variable or method `cart_link_url' #2

harin opened this issue Dec 19, 2015 · 5 comments

Comments

@harin
Copy link
Contributor

harin commented Dec 19, 2015

undefined local variable or methodcart_link_url' for #<#Class:0x007fcd3cc64f38:0x007fcd3cc40278>`

Seems like alchemy was not able to access the url helpers defined in solidus.

@tvdeyen
Copy link
Member

tvdeyen commented Dec 19, 2015

Thanks for reporting. Please let me see the trace. I am guessing this is because Solidus does not use their routing proxy object. So instead using solidus.cart_link_url they are just using cart_link_url. And since we are in Alchemy controller scope, Rails can't resolve the url without knowing the routes of Solidus engine.

@harin
Copy link
Contributor Author

harin commented Dec 19, 2015

@harin
Copy link
Contributor Author

harin commented Dec 19, 2015

problem disappear when using the master branch of solidus.

@tvdeyen
Copy link
Member

tvdeyen commented May 23, 2016

@harinsa is this still an issue then? Can we close it?

@harin
Copy link
Contributor Author

harin commented May 23, 2016

I did not try it any further, so I'm not sure if it's still an issue. You can close it if you cannot reproduce it.

@tvdeyen tvdeyen closed this as completed May 23, 2016
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

2 participants