Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to generate docs for my models and controller in rails

I want to create docs for the models and controller of my application. Even for rake task, any background job. As I have thousands of lines of comments inline between the code, explanation of the all the functions actions..

I don't want docs for rails so

  rake doc:rails 

is useless for me.

Usecase is internal detailed developer notes.

like image 444
Mohit Jain Avatar asked Aug 19 '11 05:08

Mohit Jain


1 Answers

Try using this rake task:

rake doc:app

This task is provided by Rdoc. It also supports some markup that you can use to make things look better when formatted. You can see examples in the documentation.

like image 83
Devin M Avatar answered Nov 14 '22 23:11

Devin M