I love the ternary operator. It really cleans up the code look, but I have a case where it won\'t behave correctly in a Rails controller.
I get a syntax error: une
une
You need to use parentheses in your call to redirect_to so the parser can correctly understand what’s going on:
redirect_to
nexti==0 ? redirect_to(:back) : redirect_to(edit_playt_path(id: actform['playt_id'], i: nexti))