Mostly about Ruby on Rails
-
I’m still using fixtures. Shame, I know. Why I do use them instead of Factory Girl or other solution like that? Well, fixtures can be much more closer to real data than mocks from Factory. How come, You ask? Fixtures…
-
Logger – simple, yet powerful Rails debugging tool
I don’t know about You, but logs are for me most powerful debugging tool. Placing many logger.debug or logger.info can quickly provide info what is happening inside Rails application. This approach is especially useful when something wrong is happening and…
-
Testing binary downloads with Webrat
I’m using Webrat to keep some sanity when approaching maintenance of new application. Customers often come to me with legacy code, which somehow is not covered by tests. In such case integration tests are way to go, since they provide…
-
Are ActiveRecord validations worth anything?
ActiveRecord, which is core component of Rails framework (at least before Rails 3.0 become reality) provides a lot features which developers do love. Validations are one of those features. They are methods which provide easy way to check if model…
-
Paperclip, passenger and “not recognized by the ‘identify’ command”
If You do use awesome :) Paperclip library, and on application served by Passenger You get errors like: Avatar /tmp/stream.1170.0 is not recognized by the ‘identify’ command. most probably Passenger does not have setup environment and is missing a path.…
Join 900+ subscribers
Stay in the loop with everything you need to know.