Colin Law wrote in post #996041:
>
> So if you put a break point immediately after
> setax = setA.split(" ")
> then setax is nil, but if you then (while still broken) do
> setax=setA.split(" ") then setax gets a value.
> If so I find that most remarkable.
>
> You have not said how setax and setbx are defined. Are they db cols
> for the model in which setup_data is defined or what?
>
> Colin
Correct. I put a break point immediately after
setax = setA.split(" ") and it is nil.
p setax
nil
Then do
setax = setA.split(" ") and setax gets a value.
p setax
["test", "linux"]
setax and setbx are only variables used to for searching columns in the
Search table. They are not used anywhere else. Part of the code below:
if setBList != 0
setbx << YAML.load(Autoterm.find(setBList).terms)
setbx.flatten!
end
setag = []
setax.each do |w|
setag << Transform.transform(w.stem.strip)
end
setbg = []
setbx.each do |w|
setbg << Transform.transform(w.stem.strip)
end
I hope this info is what you were asking about. Thanks for your help!
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment