I’m just getting started with RoR (and web development in general).
I know that when outputting user-supplied data we should escape it with the h() helper.
Is there a way to ensure that all form data (params?) received by an action is guaranteed to be escaped automatically? (I do understand that it’s a wise decision to escape HTML when displaying in a view, which I will be doing in any case ).
don’t know if this is the answer you were looking for, but you can do this by upgrading your app to rails3 – quoting Ryan Bates “In Rails 3, however, output is escaped automatically so there’s no need to put the h method” – read the asciicast or watch the railscast 🙂