This website uses cookies for analytics and to improve provided services. By choosing I Accept, you consent to our use of them and other tracking technologies according to our Privacy Policy

Posts by Michał Szajbe

Development  Ruby/Rails 

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...
Michał Szajbe

Development  Ruby/Rails 

Testing AJAX-reloaded elements with Capybara
Capybara is a great tool for testing application flow and user interfaces. Thanks to Culerity and Selenium web drivers you can test javascript and AJAX features of your apps.
Michał Szajbe

Development  Ruby/Rails 

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?
Michał Szajbe

Development  Ruby/Rails 

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.
Michał Szajbe

JavaScript  jQuery  Ajax  Development  Ruby/Rails 

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...
Michał Szajbe

Development  Ruby/Rails 

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.
Michał Szajbe

Development  Ruby/Rails 

"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...
Michał Szajbe

Development  Ruby/Rails 

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:
Michał Szajbe

PHP  Development 

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...
Michał Szajbe
Newer Older
Click "Subscribe" to consent to processing your data by Monterail Sp. z o.o. for marketing purposes, including sending emails. For details see our Privacy Policy.