Another article for SitePoint. This one’s about some security issues and considerations on Rails. A few important things to have in mind. Go take a look!
Quick heads up on operator precedence:
If you want to assign a value to a variable depending on a boolean, use
|| takes precendence over
or does not.
I got stuck a few minutes today until I realized where the error was.
Hope this helps and you don’t fall in the same trap :)
Last week I noticed one CI server was taking a huge amount of time to finish a test suite. It was supposed to run a few minutes, but was taking hours instead. A few months before, when the server was just set up, it ran in a few minutes as expected. Here’s how it was diagnosed and fixed.
Wrote an article for SitePoint (ex RubySource) about preparing a Rails 3 app to upgrade to Rails 4. Covers most new features and deprecations. Go take a look!