Hi,
I'm getting a few errors running ebb with a merb application. The first has to do with the request object created in merb, missing the host value, when running as local host. Here how to reproduce running against merb
0.9.4.
merb-gen app sample
cd sample
merb-gen controller sample
edit app/views/sample/index.html.erb
add
<%= absolute_url( '/' ) %>
start up the merb app
merb -a ebb
navigate to
http://127.0.0.1:4000/sample/You should get a stack showing the error on this line:
~ can't convert nil into String - (TypeError)
/Library/Ruby/Gems/1.8/gems/merb-core-0.9.4/lib/merb-core/controller/abstract_controller.rb:474:in `+'
/Library/Ruby/Gems/1.8/gems/merb-core-0.9.4/lib/merb-core/controller/abstract_controller.rb:474:in `absolute_url'
Looking in absolute_url:
def absolute_url(name, rparams={})
request.protocol + request.host + url(name, rparams)
end
Inspecting the request object, request.host is nil
I haven't dug any deeper, hoping the reason might be more obvious to folks here. I'm also noticing that servering static files through ebb, appears to lock the request up, but with no error being reported.