Posts tagged Activerecord

This is a semi-active blog. Once I write a post, I usually never update them. If you will read through some of these and try to follow them, please do so at your own risk. Technology changes quickly. Established languages are not as cool as they used to be. Some tutorials written several years ago may no longer work and do not reflect present day best practices.

Why You Might Not Use Named Scopes In Rails3

rails3 arel activerecord

Some apps probably do not use the field "promoted" primarily because there's a published field then all published posts will be promoted on front page. But in Drupal, nodes have promoted field and I think most apps should too. Sometimes you wouldn't want to show everything on the front page or want some post on top of the list of posts.

Continue reading »

ActiveRecord Migrations for Sinatra

sinatra activerecord mysql orm

I have learned that Sequel ORM was simple and is the preferred ORM for Sinatra developers. But I feel so attached to ActiveRecord right now. Basically some of the gems I am using are actually extensions to ActiveRecord and I have grown to love these Ruby gems despite being ActiveRecord-centric. They wouldn't work with DataMapper or anything else.

Continue reading »

Hello! I am Kat. I've been a developer for several years. When I'm not sitting down, reading and working for long hours, I am traveling to some place of interest.
If you want to reach out, you can send me an email or add me up on Google Plus.