1. What Rails handles for you
- Secure defaults in generators and templates reduce common beginner mistakes.
- Active Record escapes values when you use its query interface. Danger appears only if you build SQL strings from user input.
- View escaping prevents most XSS. Treat every
raw/html_safeas a security review item. - Session and cookie handling is signed and encrypted by default.
- Security-focused release process: the Rails team publishes security advisories and patches. Staying current matters more than anything else.
