If you have a simple respond_to block in your controller that looks like this:
respond_to do |format|
format.html
format.xml
end
You can use this alternate syntax and save a few keystrokes..
respond_to(:html, :xml)
Ok so it may not give you a huge performance boost, but if you’re obsessed with reducing the size of your code, this is a nice way to make a saving!

Recent comments
1 year 23 weeks ago
1 year 23 weeks ago
1 year 25 weeks ago
1 year 27 weeks ago
1 year 42 weeks ago
1 year 45 weeks ago
1 year 45 weeks ago
1 year 45 weeks ago
1 year 46 weeks ago
1 year 48 weeks ago