I’m trying to split a string up as follows:
@ruby = “I like carrots”
=> “I like carrots”
@type = @ruby.split[0,@ruby.split.length-1]
which works fine in the console…but when I try to run it on my site, I
get the error:
private method `split’ called for #List:0xb681084c
What could be the problem?