NetManiac

Witold Rugowski on web20 wave with Ruby on Rails

Are ActiveRecord validations worth anything?

Posted on July 20, 2009 - Filed Under RubyOnRails, Security | 3 Comments

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 is valid and protect consistency our data in database. Sounds good, but this is bullshit. [...]

Popularity: 14% [?]

Read More..>>

Paperclip, passenger and “not recognized by the ‘identify’ command”

Posted on July 14, 2009 - Filed Under FreeBSD, RubyOnRails | 13 Comments

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. On FreeBSD identify is placed in /usr/local/bin and AFAIR this path is not included by [...]

Popularity: 25% [?]

Read More..>>