At Vinsol, we consider ourselves pioneers instead of simple coders. This sets us apart from our competitors because it drives how we approach problem solving. With an extensive team of talented Ruby on Rails, iOS and Android developers, Vinsol can … Continue reading
Category Archives: web development
Recently in one of our e-commerce projects we implemented phone verification for users to have authentic accounts at our website. The requirement was to have one account per user to avoid misuse of offers provided by our service on scenariosÂ like … Continue reading
Cross posted from darthsid The purpose of SSL is to provide a reasonable level of protection against eavesdropping and man-in-the-middle attacks. Although SSL provides a greater level of security, it introduces a lot of overheads and hence should be used … Continue reading
Cross posted from darthsid This is my very first blog post and so I though it should be about a tool that is indispensable for me – Git. I started using git about 10 months ago and looking back I … Continue reading
We live in a quick-fix society so it’s no wonder that many startups especially in technology look for the magic cure to increase their sales or get funding for their projects.Â These projects follow funding driven development methodology. And here … Continue reading
You may have noticed by now, that in Rails 2.0 changeset 7422, you can specify columns you want to add/remove in your migration by passing attribute:type pairs to the migration generator.
For example, lets assume that we need to add a column ‘role’ in users table(User model). In this case generate a migration like:
script/generate migration […] Continue reading
Some days ago I wrote a post about “SVN commit notification” which uses a perl script for sending commit notification with svn diff by mail. In this mail you can find svn diff from the last committed revision. I used to love this mail, soon I realized that it is a bit ugly and difficult […] Continue reading
Consider a case of STI where:
class User < ActiveRecord::Base
class Customer < User
class Manager < User
Now try following at console:
User.create(:name => “Akhil Bansal”)
Manager.create(:name => “Akhil Bansal”)
Customer.create(:name => “Akhil Bansal”)
This will let you create three records in users table with same name, validates_uniqueness_of written in User class has no effect on it. validates_uniqueness_of automatically […] Continue reading
Now a days Apache + mod_proxy + mongrel_clusters, Lighttpd + Mongrel cluster and Nginx + mongrel cluster are well known for deploying rails applications.
You can also deploy your rails application with pound(a reverse proxy, load balancer and HTTPS front-end for Web server).
First you need to setup mongrel_clusters for your rails application by issuing […] Continue reading
Yesterday I posted about CruiseControl for Rails projects. It was working fine with all my rails projects using traditional test cases, But today I faced a problem with a project using RSpec. Actually, By default CruiseControl follows the following step to build:
This default was not working with my last project As I […] Continue reading