NetManiac

Witold Rugowski on web20 wave with Ruby on Rails

Don’t use array as argument for AJAX call with Prototype

Posted on March 31, 2008 - Filed Under AJAX, JavaScript, RubyOnRails | 3 Comments

I’m using Prototype JavaScript library and today I have learned one thing. To make Your life easier do not use JavaScript Arrays as arguments for AJAX calls.
I’m talking about parameters option in Ajax objects (Ajax.Request, Ajax.Updater, etc). Let’s take simple HTML snippet (public/test.html):

<div id=”out”></div>
<script src=”/javascripts/prototype.js” type=”text/javascript”></script>
<script type=”text/javascript”>
addr = []
[...]

Popularity: 13% [?]

Read More..>>

How to write DSL (with Acts As Tree in background)

Posted on March 26, 2008 - Filed Under Ruby, RubyOnRails, howto | Leave a Comment

Acts As Tree is useful plugin providing abstract layer for Your models to form tree structures. I was using it recently to store some document structures in DB. Plugin works as a charm and there is not too much to write about. Just follow README ;)

But I needed to create documents somehow, and provide easy [...]

Popularity: 21% [?]

Read More..>>

NetManiac - reloaded

Posted on March 23, 2008 - Filed Under Other, Personal | Leave a Comment

This year have stared for me with permanent lack of time. In January I was finishing Ruby project, which was started over one year ago. And last six weeks I was involved in creation of prototype application (Rails of course) for some Germany startup. It seems that this stage is over and I did not [...]

Popularity: 7% [?]

Read More..>>