ALEX HOWINGTON
Updated 255 days ago
When a flash type is registered, a special flash accessor, similar to alert and notice, becomes available to be used with redirect_to...
It's particularly important to take care in specifying conditions that include boolean values. Databases have various different ways of representing boolean values in columns. Some have native boolean datatypes, and others use a single character, often and or and (or even and )...
I started reading The Rails 5 Way recently and decided I'm going to post little snippets I want to use in the future.