Re: [Rails] Error in GITHUB

2015-04-14 Thread Colin Law
On 14 April 2015 at 09:45, Kagiso Samuel Ramolotja wrote: > Hi, all > > Please help with the following code, I think one line is giving the error. > What can I do below to make the code to output 1,7,"Testing", nil, 321 > > > def output_values(*values) > values.each do |value| > if value ==

[Rails] Error in GITHUB

2015-04-14 Thread Kagiso Samuel Ramolotja
Hi, all Please help with the following code, I think one line is giving the error. What can I do below to make the code to output 1,7,"Testing", nil, 321 def output_values(*values) values.each do |value| if value == nil puts "Nil value" return end puts value end en