Is there a ruby equivalent for the phpinfo() php function that displays all the variables and environment settings ? Thanks, vasu. -- Posted via http://www.ruby-forum.com/.
from cmd: ruby script/about On 5/9/06, VS YR <vasuboy@gmail.com> wrote:> > Is there a ruby equivalent for the phpinfo() php function that displays > all the variables and environment settings ? > > Thanks, > vasu. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Jim -- Welcome to the ownership society. If you have not been assigned an owner yet, please report to Iran for duty. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060509/71ab7fd2/attachment.html
embedded erb might be helpful... <%= params.inspect %> <%= session.inspect %> of course this isn''t going to give you environment settings though. Craig On Tue, 2006-05-09 at 05:18 -0700, Jim mack wrote:> from cmd: ruby script/about > > On 5/9/06, VS YR <vasuboy@gmail.com> wrote: > Is there a ruby equivalent for the phpinfo() php function that > displays > all the variables and environment settings ? > > Thanks, > vasu. > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > -- > Jim > -- > Welcome to the ownership society. > If you have not been assigned an owner yet, > please report to Iran for duty. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails
There is always http://localhost:3000/rails/info/properties. But only if you are on localhost. On 5/9/06, Craig White <craigwhite@azapple.com> wrote:> embedded erb might be helpful... > > <%= params.inspect %> > > <%= session.inspect %> > > of course this isn''t going to give you environment settings though. > > Craig > > On Tue, 2006-05-09 at 05:18 -0700, Jim mack wrote: > > from cmd: ruby script/about > > > > On 5/9/06, VS YR <vasuboy@gmail.com> wrote: > > Is there a ruby equivalent for the phpinfo() php function that > > displays > > all the variables and environment settings ? > > > > Thanks, > > vasu. > > > > -- > > Posted via http://www.ruby-forum.com/. > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > > -- > > Jim > > -- > > Welcome to the ownership society. > > If you have not been assigned an owner yet, > > please report to Iran for duty. > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- -------------- Jon Gretar Borgthorsson http://www.jongretar.net/
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’s
environment</a></h3>
<div id="about-content" style="display:
none"></div>
</div>
--
Posted via http://www.ruby-forum.com/.