Dreaming Ruby Code
Friday morning about 5am, after a late night of coding, I woke up dreaming ruby. Well, that’s a first. The good news is that my dream actually helped me fix my code (that’s another first).
So, what was the issue? A multi-step form which is saved immediately after the first step.
What was the solution? Initially, I tried out ryanb’s multi-step form (no saving after the first step), but that wasn’t what I was after. I turns out there’s a nice little gem - gem “stepper”. It adds a current_step field to the table you’re working with, but I can live with that.
All good!
