Forum: Ruby on Rails ruby equivalent of phpinfo()

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.
Vs Y. (Guest)
on 2006-05-09 12:58
Is there a ruby equivalent for the phpinfo() php function that displays
all the variables and environment settings ?

Thanks,
vasu.
Jim mack (Guest)
on 2006-05-09 16:20
(Received via mailing list)
from cmd:  ruby script/about

On 5/9/06, VS YR <removed_email_address@domain.invalid> wrote:
> Rails mailing list
> removed_email_address@domain.invalid
> http://lists.rubyonrails.org/mailman/listinfo/rails
>



--
Jim
Craig W. (Guest)
on 2006-05-09 17:11
(Received via mailing list)
embedded erb might be helpful...

<%= params.inspect %>

<%= session.inspect %>

of course this isn't going to give you environment settings though.

Craig
Jón B. (Guest)
on 2006-05-09 17:56
(Received via mailing list)
There is always http://localhost:3000/rails/info/properties.

But only if you are on localhost.

On 5/9/06, Craig W. <removed_email_address@domain.invalid> wrote:
> On Tue, 2006-05-09 at 05:18 -0700, Jim mack wrote:
> >         --
> > --
> removed_email_address@domain.invalid
> http://lists.rubyonrails.org/mailman/listinfo/rails
>


--
Monica (Guest)
on 2006-05-10 01:40
in your rails app public directory, check out the source code in the
index.html file, where you will see

    <script type="text/javascript">
      function about() {
        if (Element.empty('about-content')) {
          new Ajax.Updater('about-content', 'rails/info/properties', {
            method:     'get',
            onFailure:  function()
{Element.classNames('about-content').add('failure')},
            onComplete: function() {new
Effect.BlindDown('about-content', {duration: 0.25})}
          });
        } else {
          new Effect[Element.visible('about-content') ?
            'BlindUp' : 'BlindDown']('about-content', {duration: 0.25});
        }
      }

      window.onload = function() {
        $('search-text').value = '';
        $('search').onsubmit = function() {
          $('search-text').value = 'site:rubyonrails.org ' +
$F('search-text');
        }
      }
    </script>
  </head>


THEN IN YOUR BODY TAG:

 <div id="about">
          <h3><a href="rails/info/properties" onclick="about(); return
false">About your application&rsquo;s environment</a></h3>
          <div id="about-content" style="display: none"></div>
        </div>
This topic is locked and can not be replied to.