Rails 2.0 introduced protection for Cross-site request forgery (CSRF). This is turned on by default in your Rails applications. However, many developers are turning off this valuable protection rather than making the changes necessary to use it. This seems the same to me as leaving your door unlocked while your friend visits because cutting keys [...]
Continue Reading...
Ever since I saw Heroku I wanted to use it for a screencast on learning Ruby on Rails. This weekend I finished the very first episode! This episode is fairly light on Ruby on Rails content because I was so focused on screencasting and learning all about video and audio production for the web.
So take [...]
Continue Reading...
I spend a lot of time convincing my friends to switch to a Mac. Some of my friends are also software developers so naturally, just when they think the evangelism has come to an end, I convince them to get on the Rails. However, learning Rails usually means learning Ruby for the first time as [...]
Continue Reading...
There comes a time in every Rails developers life that they need to work with MySQL. Often this means that your development comes to a screeching halt as you wade through the various options for getting MySQL installed on your Mac.
This guide won’t help you install it anywhere else… because I am a zealot [...]
Continue Reading...
SQLite is an extremely lightweight (dare I say agile) database. It uses files and doesn’t require you to start and stop services or spend a great deal of time configuring it. SQLite will be a good choice if you have a load under 100,000 requests and few concurrent writes. If you have a simple site [...]
Continue Reading...
If you are not using the Rails console while your developing then now is the time to start! I learn best by example, so that’s how I am going to structure this.
Here’s the scenario:
You are writing code against a class and need to determine which attributes you have available to you. In Rails, your attributes [...]
Continue Reading...
Being a Rails coder is easy, deploying a Rails application can be hard. Through a great deal of effort, we’ll call it blood, sweat and tears, I have put together the following guidance on how to get your Ruby on Rails application up and running behind a Mongrel cluster using Apache Proxy.
Here’s the deal, I [...]
Continue Reading...