Ruby equivalent of phpinfo()


#1

Is there a ruby equivalent for the phpinfo() php function that displays
all the variables and environment settings ?

Thanks,
vasu.


#2

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


#3

embedded erb might be helpful…

<%= params.inspect %>

<%= session.inspect %>

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

Craig


#4

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


#5

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’);
}
}

THEN IN YOUR BODY TAG:

About your application’s environment