Ruby on Rails related cheat sheets

Posted by Dmytro Shteflyuk on under Ruby & Rails · Русский (36,873 views)

There are couple of cheat sheets about Ruby on Rails and related technologies can be found in the web. I decided to collect all of them (almost all) in one post just to keep them in mind. All of them are in full color PDFs or PNGs.

Read the rest of entry »

In-place file upload with Ruby on Rails

Posted by Dmytro Shteflyuk on under Ruby & Rails · Русский (93,082 views)

My friends often asked me how to upload file using AJAX, and usually they got answer “in no way”. Correct answer, but what if I need to upload file without full page reloading? And, of course, I want to use RJS in this case. Here I’ll explain what to do to get effect very similar to AJAX file upload (btw, Gmail uses this technique).

Read the rest of entry »

Extending moo.fx with custom effect (fx.Flash)

Posted by Dmytro Shteflyuk on under JavaScript · Русский (22,560 views)

Several days ago my best friend Alexey Kovyrin asked me to help him to create flashing effect on HTML page. I gave him advice to create this effect using moo.fx library. I wanted to show how to extend it, but I couldn’t keep from creating this effect myself.

moo.fx is a superlightweight, ultratiny, megasmall javascript effects library, written with prototype.js. It’s easily to extend it with custom effect and in this post I will show you how you can do this. In this article I’ll show how to create flashing effect: element’s background will smoothly change from one color to another and go back to first color (maybe several times).

Read the rest of entry »

Prototype Dissected

Posted by Dmytro Shteflyuk on under JavaScript · Русский (15,949 views)

Jonathan have dissected Prototype in a very nice graphics, this will give you a better view of the code and how it works.

In getting to know Prototype a little better, I decided to go through the latest version of the Prototype library (1.5.0_pre0) and detail every method and property that was available. In doing so, I got a much better understanding of how the code works (and how to work with library).

Prototype Dissected