I\'m getting the following error:
NoMethodError in Users#new Showing .../app/views/users/form/_new.haml where line #7 raised: undefined method `on\' for #&
If you're using Rails 3, then the problem is that there's no "on" method for the Errors class anymore. I think you're supposed to use "get" now. So:
error = case errors = model.errors.get(field)
Or...
error = case errors = model.errors[field]