Rails/info/properties


#1

hi i had a doubt while creating a new rails project we are getting the
basic welcome message as

Welcome aboard
You’re riding Ruby on Rails!
About your application’s environment

on clicking the about ur applications we are getting the full
information about the gem version,rails path etc.I have checked the
index.html file.its calling prototype js with function

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

how it is retrieving the information from rails/info/properties

Thanks in advance


#2

On 30 Dec 2008, at 14:36, Nike M. wrote:

how it is retrieving the information from rails/info/properties

There is a magic controller inside rails itself which is only
available if the development environment.

Fred