2008年9月5日 星期五

rjs update layout

http://www.codefluency.com/articles/2006/05/27/rails-views-render-update-not-rjs/
http://www.scribd.com/doc/220397/RJShow-it-works
http://api.rubyonrails.org/classes/ActionView/Helpers/PrototypeHelper/JavaScriptGenerator/GeneratorMethods.html
http://api.rubyonrails.org/classes/ActionView/Helpers/PrototypeHelper.html

[test rjs]
page.you_holder.cde

[application.js]
YouHolder.cde = function(){
(function($){
alert('lalala');
})(jQuery);
}



layout proc{ |c| c.request.xhr? ? false : "application" }

沒有留言: