Forum: Ruby on Rails script/overview

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
cldwalker (Guest)
on 2005-11-15 09:30
(Received via mailing list)
Hi rails people,
 I just put up a script for viewing the methods of classes
under app/. This is useful for getting a handy summary of these classes,
perhaps for note taking.
Read about it here: http://www.chwhat.com/articles/2005/11/14/
Download the script from : http://www.chwhat.com/files/overview.rb

Simply drop the script under script/.
Run it and get output as shown at end of this email.

In the somewhat-related subject of handy scripts for getting an overview
of a rails app, I'm
looking for a ruby-based schema image generator. Anyone have such a
script they'd be willing to share?
I found a relevant post using graphviz but the script is unavailable:
http://article.gmane.org/gmane.comp.lang.ruby.rail...

Gabriel

====Sample output for snippets rails app at
http://www.bigbold.com/snippets===

controllers
	UserController:
	  - show
	PostsController:
	  - create
	  - destroy
	  - edit
	  - index
	  - show
	  - update
	TagController:
	  - show
	ApplicationController:
	  - admin_or_post_owner
	  - check_if_visitor_allowed
	  - get_page_number
	  - get_related_posts
	  - get_tag_info
	  - get_user_info
	  - is_ticketed
	  - redirect_back
	  - store_locations
	LoginController:
	  - account
	  - create
	  - login
	  - logout
	  - new
	  - update
	CommentsController:
	  - create
helpers
	TagsHelper: []
	LoginHelper: []
	UserHelper: []
	PostsHelper: []
	CommentsHelper: []
	ApplicationHelper:
	  - niceify_html
	  - niceify_html_for_rss
	  - page_title
	  - rounded_box_bottom
	  - rounded_box_top
	  - tag_link
models
	Comment: []
	User:
	  - authenticate
	  - change_password
	  - crypt_password
	  - find_with_count
	  - "isAdmin?"
	  - "isAdmin?"
	  - sha1
	Tag:
	  - find_all_with_count
	  - find_all_with_count_for_tags
	  - find_all_with_count_for_user
	  - find_by_name_with_count
	Post:
	  - find_related_posts
	  - pagetitle
	  - tagsspaced
	  - tagsspaced=

=== END of output===
--
Check out at my website at http://www.chwhat.com
IF mail to chwhat.com bounces, send it instead to
removed_email_address@domain.invalid
Peace.
This topic is locked and can not be replied to.