# Limiting & Clamping Values in Ruby

> Episode of [GoRails Screencasts](https://podistic.com/podcast/gorails-screencasts.md) · Published May 27, 2024 · Duration 5:26

- **Listen on Podistic:** https://podistic.com/episode/limiting-clamping-values-in-ruby
- **Video:** https://gorails.com/episodes/limiting-and-clamping-values-in-ruby/download (video/mp4)

## About this episode

Sometimes you need user input to be restricted to a certain range or limited like "greater than zero". While you can do this with conditionals, there are some useful tricks to do this better in Ruby.
