Hi, I''m working on documenting my Rails application, and I have problem documenting Models. Currently, there''s no way (if i''m not overlooking something) to document Model fields. You can''t use #attr* because that will broke Rails internals. I found this workaround, that imo could be merged into main code base to make documenting easier: * Define a dummy self.field method in ActiveRecord::Base class * Add ''-A field=rw'' to rdoc options inside Rakefile And now you can do: class Document < ActiveRecord::Base # Document title field :title ... end It fits very nicely in the way I want to document my code and I hope it will for you :) -- sdmitry -=- Dmitry V. Sabanin MuraveyLabs. Spam Here -> postmaster-O47CVlosszw@public.gmane.org
Thanks for the idea. I was contemplating the very same issue just last night. :-) -- Regards, John Wilger ----------- Alice came to a fork in the road. "Which road do I take?" she asked. "Where do you want to go?" responded the Cheshire cat. "I don''t know," Alice answered. "Then," said the cat, "it doesn''t matter." - Lewis Carrol, Alice in Wonderland