#2 should work if you replace the single quotes with double. Single quotes mean you want whatever's inside to be treated literally. If that doesn't fix it, it would help to see what results you're getting.
Keep up to date with Rails on Twitter and This Week in Rails
Policies: Conduct, License, Maintenance, Security, Trademarks