Rails 4 was released in 2013 and introduced several new features including stronger security with strong parameters, default security headers, and encrypted cookies. It also improved caching with Russian Doll caching and declarative ETags. Under the hood, ActiveRecord was updated with lazy loading, scope deprecation, and new finder methods.