Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4025246
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:49:20+00:00 2026-05-20T10:49:20+00:00

I have a medium-complex Rails app. The main controller (the one that does what

  • 0

I have a medium-complex Rails app. The main controller (the one that does what the app is there to do) has a single action method. (It’s not a standard RESTful app; this is acting as an intermediary and there are external constraints on how it can be called.)

However, it does have lots of methods and a number of filters, and an ever-growing test suite. The structure has changed considerably over time, and I no longer have confidence that some of the Mocha expectations that were set up for the tests written earlier are still appropriate.

There are multiple people working on the app, so I’m constructing a cookbook for writing functional tests. ‘Use [these] expectations and assertions when you want to ttest with/without [those] side effects’ and so on.

A call tree/graph would be extremely useful in composing such a document. Aside from the filters, such could even be statically derived from the sources — by something that knew about Rails’ know-everything-about-everything model, so maybe static isn’t such a good idea. 🙂

I’ve tried using RubyProf with my functional tests to get a call tree, but all I get are trees relating to the test methods and parts of the kernel and Rails — and none of the controller methods. (At least not that I’ve found; the profiling creates lots of little files instead of one big one.)

The failure to find the controller methods might be related to how the action method is invoked — via send rather than some more ‘normal’ mechanism.

Blah, blah, blah.. just FYI on what I’ve tried so far.

Is there a good tool to build a who-calls-what flow chart/call tree for a Rails 2.3.8 app?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T10:49:21+00:00Added an answer on May 20, 2026 at 10:49 am

    Did you try https://github.com/tmm1/rbtrace? I’ve not tried it with Rails, so I’m not sure it would work in your case.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two medium-sized web applications that I'm merging into one. They are both
I've got this medium-sized app that is starting to get too complex. I'm considering
We have a medium sized Java server that has data flowing in the following
We have a medium sized .js file that we include in our web framework
I have a medium size Java file. Everytime I make a change to one
I have a medium sized application that runs as a .net web-service which I
I have a small to medium project that is in C++/CLI. I really hate
I have a string that is HTML encoded: '''<img class="size-medium wp-image-113"\ style="margin-left: 15px;" title="su1"\
I have a medium complex C++ class which holds a set of data read
I have inherited a medium sized database that we are trying to use with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.