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

"missing view or tag" if identical template #331

Open
antoniusostermann opened this issue Nov 6, 2015 · 1 comment
Open

"missing view or tag" if identical template #331

antoniusostermann opened this issue Nov 6, 2015 · 1 comment

Comments

@antoniusostermann
Copy link

If I copy a template, e.g. "about.html" of the demos, and change nothing to it but the name (e. g. "test.html", even after applying routes and controller:

class MainController < Volt::ModelController
  def test
  end
end

client '/test', action: 'test'

I get the error message -- < missing view or tag at "main/main/test", make sure it's component is included in dependencies.rb > --. I don't know if it's wanted that you cannot have the same template twice (should never make sense), but this error message is very confusing to newcomers since it points you in the wrong direction: looking at your folder structure.

@ryanstout
Copy link
Member

@canifex good point, there's a few things that can cause that message. I'll change it to make it clearer.

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