How do you quickly create a controller with all the default rest actions?
rails g scaffold_controller Users
How do you validate that an attribute is one of a set of values?
validates :attribute, inclusion: { in: [val1, val2, …] }
What’s a quick way to display the flash if there are errors?
render flash[:errors] if flash[:errors]