Delayed_job for background processing in Rails

*update: delayed-job is now available on gemcutter* The first thing to do obviously is to install DelayedJob. There are plenty of forked versions available on git-hub. I chose collectiveidea beacuse it was recommend on railscasts. I did refer to this site extensively for setting up delayed_job. Job half done. I followed instructions on the github … Continue reading Delayed_job for background processing in Rails

Migrating Acemoney onto a different server with nginx+passenger

Acemoney is a hosted application built by us i.e. Josh Software. Currently, its hosted on a linode with nginx+thin configured. The problem here is that there are 3 thin servers which consume humongous 'stagnant' memory. We have decided to migrate to nginx+passenger so that we an control in greater detail the number of instances, the … Continue reading Migrating Acemoney onto a different server with nginx+passenger

How to map irregular database tables with rails models

Rails specifies standard conventions while creating models, controllers, migrations ( database tables ).Conventions for creating database tables1. Table name should be plural2. id field must be primary_key for table.3. foreign_key  must be like <model_name>_id i.e. post_id, site_idConventions for creating models & Controllers1. Model name must be singular and controller name should be plural.Although rails have … Continue reading How to map irregular database tables with rails models