Ruby equivalent of phpinfo()

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

Thanks,
vasu.

from cmd: ruby script/about

On 5/9/06, VS YR [email protected] wrote:

Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails


Jim

embedded erb might be helpful…

<%= params.inspect %>

<%= session.inspect %>

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

Craig

There is always http://localhost:3000/rails/info/properties.

But only if you are on localhost.

On 5/9/06, Craig W. [email protected] wrote:

On Tue, 2006-05-09 at 05:18 -0700, Jim mack wrote:

    --


[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs