I just tried out flow but got the following error.. Can you take a look?
/Users/daesan/flow/lib/flow.rb:136:in `initialize': undefined method
`shift' for #<String:0x6d69d8> (NoMethodError)
from /Users/daesan/flow/lib/flow.rb:71:in `new'
from /Users/daesan/flow/lib/flow.rb:71:in `process'
from /Users/daesan/flow/lib/flow.rb:61:in `block in on_request'
while im unemployed - maybe :)
I was doing some non-standard rack stuff, but it should be normal now.
/Users/daesan/flow/lib/flow.rb:145:in `call': undefined method `each'
for #<String:0x6dd814> (NoMethodError)
from /Users/daesan/flow/lib/flow.rb:69:in `process'
from /Users/daesan/flow/lib/flow.rb:56:in `block in on_request'
from the rack spec:
> The Body must respond to each and must only yield String values.
> The Body commonly is an Array of Strings,
> the application instance itself, or a File-like object.
ryah
I fixed the problem (for now) just by wrapping body string with an
array. It works fine now. However, I get the following error
occasionally.
/Users/daesan/flow/lib/flow.rb:145:in `call': undefined method `each'
for #<String:0x433a28> (NoMethodError)
from /Users/daesan/flow/lib/flow.rb:69:in `process'
from /Users/daesan/flow/lib/flow.rb:56:in `block in on_request'
daesan