Exists? Don’t ignore!
You’ve been a ruby on rails developer for so long. You create migrations and never run into trouble. Suddenly you have multiple changes on your migration and you’re now paying attention to indexes more than you used to because your app is now growing and you need to make enhancements. Sounds like you? Tip: Don’t
read more
Picking up the breadcrumbs
Its always easy to skip going through the details of what your stacked up knowledge and just go for trying out new stuff. This time, I take it one step back and skim through pages of books I have always ignored and pick some sections that are worth looking into and post them here. I’ve
read more
The power of toggle
I don’t know if we’ve been missing out on deliberate API lovin’ or that we’re becoming dumber every minute because of too much work, or its just the love month? …but we’ve been missing the power of “toggle“. Toggle is defined as: any instruction that works first one way and then the other; it turns
read more
Forcing urls to use https
I found this extremely useful: def redirect_to_ssl redirect_to url_for params.merge({:protocol => ‘https://’}) unless request.ssl? end Put this in your application controller and call before_filter :redirect_to_ssl on every controller that would require ssl. You can pick which actions would only require this by extending your before_filter declaration as such: before_filter :redirect_to_ssl,
nly => [:new, :purchase] or
read more
Testing is a Remarkable thing!
I never knew testing could really change the way I code. I know I’m a good programmer because I love implementing standards and doing the “right things” the “first time”.. and yet testing has made me realize something.. I never got to know how to properly test my own code. I’ve only used a lot
read more


