I've been working on a new project and created a custom method for one
of the models. Nothing major.
I brought up the console in --sandbox mode (also have tried in
standard console), and tried playing with it. To my surprise there
was a problem with the if/elseif conditional. The elseif portion
simply would not work. So I tried a couple commands as so to test the
actual if/elseif integrity like so:
person = "Jim"
if person == "Sally"
puts "Hi Sally"
elseif person == "Jim"
puts "Hi Jim"
This returns nil. If I put a final <else> catch it will return that
value. What am I doing wrong?