Nginx+Unicorn configuration for multi-app servers
Platform as a service is getting more and more traction recently. However it doesn't mean that one should start developing his applications with Heroku or Engine Yard in mind from now on. Self-managed solutions, be it...
Testing AJAX-reloaded elements with Capybara
Turning off auto timestamping for testing in Rails
Suppose that you implemented a functionality that depends on values of created_at or updated_at fields of your models. How do you test it?
Dynamic cookie domains with Rack's middleware
Handling sessions in multi-domain environment is not the simplest things to do, because of the fact that cookies are scoped to a domain they were set by.
Rails, Ajax and jQuery
The more ajaxified application, the more fun it is to use. But it is also more painful do develop. What is written below is my approach to pairing Rails and Ajax. It's a mix of tips I found over the net on blogs and...
Uploading to multiple S3 buckets with Paperclip and Rails
When your application uses many static files (photos for example), you should consider placing these files on different hosts to improve the speed at which they are downloaded by web browsers.
"Send this page to friend" with polymorphic controller in Rails
Last week I wrote about Tableless models in Ruby on Rails, giving an example of Recommendation model which could be used to validate users' recommendations. Today I will extend that example so that it will be more...
Tableless models in Rails
If you're developing an application in Ruby on Rails framework, there are many situations when you should consider using tableless models. The advantages you'd get are:
CakePHP - Some good practices
When you write small applications, you don't really need to care about quality of your code. However this is a must in medium or large ones. If you don't spend some time on planning, there is a reasonable chance that...