I was wondering if there is a Rails method that does something similar
to the “About your applicationâ??s environment” link on the “Welcome
Aboard” page you get when you first install Rails.
What the link does is make and AJAX call, then blind down and up using
AJAX.
I was wondering if there is a Rails method that does something similar
to the “About your application’s environment” link on the “Welcome
Aboard” page you get when you first install Rails.
What the link does is make and AJAX call, then blind down and up using
AJAX.
Have you looked the source code of public/index.html ?
public/index.html :
[…]
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});
}
}
[…]