hi, I''m trying to split a string up as follows:>> @ruby = "I like carrots"=> "I like carrots">> @type = @ruby.split[2][0,@ruby.split[2].length-1]=> "carrot" 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? Thanks, Phil. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
shit sorry, I''m a dooshbag, the problem isn''t a problem, the problem is my eye for detail. @ruby wasn''t assigned to a string in my code. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Reasonably Related Threads
- Failed to parse template ... private method 'split' called for :undef:Symbol - github - puppetlabs/puppet-dhcp
- what is "private method `split' called for nil:NilClass" error??
- Bizarre multi-homed name resolution with nmbd?
- Could not retrieve local facts: private method `split' called for nil:NilClass
- Object Property Sorting - Hash?