• undefined local variable or method `city' for #

    From Pratap Patil@21:1/5 to Cai Gengyang on Fri Oct 21 04:38:32 2016
    On Friday, December 11, 2015 at 11:30:45 AM UTC+5:30, Cai Gengyang wrote:
    first_name = gets.chomp
    last_name = city

    undefined local variable or method `city' for #<Context:0x10099d8>

    What does "undefined local variable or method `city' for #<Context:0x10099d8>" mean? Tried searching in Google, but no results were returned ...

    Define city varible before assigning to another varibles

    first_name = gets.chomp

    city = ''

    last_name = city

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)