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 7401951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:36:59+00:00 2026-05-29T04:36:59+00:00

I am attempting to visualize / understand my Rails application hierarchy on each page

  • 0

I am attempting to visualize / understand my Rails application hierarchy on each page request. I thought that perhaps a puts caller would do the trick, however I’m not wanting a highly verbose trace through the Rails framework itself.

I only primarily want dependent scripts in my own Rails app over which I essentially have control. I could say (inaccurately) that I’d like for, when a request is made, that in the console it would print out the root script that is being called and then all of it’s links on up to the last view erb / haml, etc.

How can I accomplish something like this without putting a puts statement in each file in my Rails app at the head and end of each one?

If I insert a puts "-> #{File.expand_path(File.dirname(__FILE__))}/#{File.basename(__FILE__)}" into each of the Rails app files, that can more or less accomplish what I’m trying to get to, however would something along the lines of this “Show full path name of the ruby file when it get loaded” do the trick more appropriately without modifying all kinds of files; keeping it DRY?

  • 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-29T04:36:59+00:00Added an answer on May 29, 2026 at 4:36 am

    You could filter output of Kernel#caller by checking filename. If it’s in your project directory, then print it. Otherwise, ignore.

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

Sidebar

Related Questions

Attempting to use asp.net mvc's Action Result of File. So it would seem that
Attempting to better understand chaining on a hashtable. Seeking a simple table that hashes
Attempting to print out a list of values from 2 different variables that are
Attempting to make a NSObject called 'Person' that will hold the login details for
When attempting to understand how a SQL statement is executing, it is sometimes recommended
Attempting to use JRuby 1.2.0 and Rails 2.3.2 with an embedded Derby database. I've
I was initially attempting visualize a 4 parameter function with Plot3D and Manipulate sliders
Attempting what would appear to be a simple pre ajax-post validation against a short
Attempting to deserialize JSON data and update each object's prototype and inherit a common
I am attempting to find a logging framework for a Cocoa application, written in

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.