What does the Asset Pipeline actually do?

The asset pipeline was introduced in Rails 3.1 (I believe) and has been a controversial addition ever since. I’ve gone through stages of hating it and stages of wondering how I ever managed without it. The biggest initial problem with it is that it’s just confusing till you get your head around what’s going on…. Continue reading

How do I prevent an AJAX link from being clicked twice?

I have a link that I want users to click when they “like” a POST. It’s implemented using AJAX and looks like this:

First thing to note – I never use the Rails remote helpers. They are nice and easy to get started but you lose a lot of control. And if you use… Continue reading