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. -- Posted via http://www.ruby-forum.com/.
Jean-François
2006-May-18 22:03 UTC
Re: [Rails] "About your application’s environment" Effect
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. -- ? la renverse.
Yeah, seems pretty straight forward, but I was thinking it might be possible to do that with a rails method. Thanks though. -- Posted via http://www.ruby-forum.com/.
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. -- ? la renverse.