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

link_to seems to be calling "path" which seems to be undefined? #684

Closed
pitosalas opened this issue Jul 24, 2015 · 2 comments
Closed

link_to seems to be calling "path" which seems to be undefined? #684

pitosalas opened this issue Jul 24, 2015 · 2 comments
Milestone

Comments

@pitosalas
Copy link

Line 49 in link_to.rb calls target.path.

I am getting an undefined method, and I don't know the code base well enough to determine if that's a bug or not.

@denisdefreyne
Copy link
Member

Same as #685 I believe.

@denisdefreyne
Copy link
Member

This is tricky to fix, because if #link_to receives nil (obtained from @items[] presumably), it doesn’t know what to link to.

A solution would be to let @items[] return a null object that remembers its criteria, but mimicking a null object is not something I would like to do in Ruby. :(

Thinking about leaving it as-is for now. This is not a bug in nanoc. @pitosalas If you disagree, please let me know and I’ll reopen the issue!

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

No branches or pull requests

2 participants