How to create documentation using Yard for Rails views?

I just started using Yard to create my documents, and while it works great for my models and controllers, I can't get it to generate anything for viewing

I tried various ways to make it work. I have currently configured the rake task to create documents that look something like this.

YARD::Rake::YardocTask.new do |t| t.files = ['lib/**/*.rb', 'app/**/*.rb', 'app/views/**/*.erb'] t.options = [] end 

The last way, in my opinion, is to include it in my views, but when I look at the documents, none of these files are mentioned at all. Any ideas why?

Greetings

+4
source share
1 answer

Template files are not intended to contain Ruby methods or business logic. What documentation would you like to create?

0
source

All Articles