Explain the error in the following sample of Ruby code. Reference the
line which the error is found on:
1- function effective_date(eff_date)
2- if eff_date.length < 3
3- eff_date = Time.now + (eff_date.to_i * 24 * 60 * 60)
4- return eff_date.strftime("%m%d%Y")
5- else
6- return eff_date
7- end
8- end
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.