"About your applicationâ?s environment" Effect

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.

Thanks.

Hello Ben,

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});
}
}
[…]

РJean-Fran̤ois.

Yeah, seems pretty straight forward, but I was thinking it might be
possible to do that with a rails method.

Thanks though.

2006/5/19, Ben [email protected]:

Yeah, seems pretty straight forward, but I was thinking it might be
possible to do that with a rails method.

It must be possible with RJS templates playing with :

page.visual_effect :blind_down, ‘about-content’, :duration => 0.25

things like that…

-- Jean-François.