Do not treat to the variables and conditions ...
def index
end
def search
count = 1
while count < 3
if count == 1
@movie = "not found" if @code1 == nil || @code1 == ""
if @movie == ""
end
end
if count == 2
@movie = "not found" if @code1 == nil || @code1 == ""
if @movie == ""
if @code1.include? "movshare"
end
if @code1.include? "novamove"
end
end
end
count++
end
end
end
what is the problem in this code? i get an error: syntax error, unexpected keyword_end
++does not exist in ruby, that is one potential problem