Forum: Ruby on Rails "About your applicationâ??s environment" Effect

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
7813d26c8ef483e08432ec9c574664d6?d=identicon&s=25 Ben (Guest)
on 2006-05-18 23:36
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.
13ea48f056b19349027d2f4a6921a46a?d=identicon&s=25 Jean-François (Guest)
on 2006-05-19 00:05
(Received via mailing list)
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.
7813d26c8ef483e08432ec9c574664d6?d=identicon&s=25 Ben (Guest)
on 2006-05-19 00:25
Yeah, seems pretty straight forward, but I was thinking it might be
possible to do that with a rails method.

Thanks though.
13ea48f056b19349027d2f4a6921a46a?d=identicon&s=25 Jean-François (Guest)
on 2006-05-19 00:42
(Received via mailing list)
2006/5/19, Ben <whywontitletme@yahoo.com>:
> 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.
This topic is locked and can not be replied to.