hotsh/rstat.us — pull request #500 by geihsler (2012-02-12 17:36:30+00:00)
Title: Fixes #448 - Double render error

If the user clicks on on the follow button rapidly, they will get an error message. I modified the controller not to fall through the check to see if they already follow that user. I'm not a huge fan of the returns, but I couldn't think of any cleaner way to do it.

I tried to write a spec for this, but Capybara automatically refreshes when the button is clicked, so I couldn't make it happen in the acceptance tests, and I couldn't get a generated controller test to work since I'm a rails n00b.