I have code like
word.include?("test") ? @test = word : #do nothing
My issue is that rails expects something after the colon and treats the next line of code as if it's part of the conditional statement above. I know I can use a regular if end statement but was curious to know if it's possible to end the statement after the colon and before reaching a new line? Thanks in advance