Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

router not available in env #30

Open
jackc opened this issue Aug 9, 2012 · 0 comments
Open

router not available in env #30

jackc opened this issue Aug 9, 2012 · 0 comments

Comments

@jackc
Copy link

jackc commented Aug 9, 2012

According to the comments/rdoc (http://rubydoc.info/github/joshbuddy/http_router/master/HttpRouter#call-instance_method), http_router should be placing a reference to itself in the env. This does not appear to be there.

http_router.rb:156

  # Rack compatible #call. If matching route is found, and +dest+ value responds to #call, processing will pass to the matched route. Otherwise,
  # the default application will be called. The router will be available in the env under the key <tt>router</tt>. And parameters matched will
  # be available under the key <tt>router.params</tt>.
  def call(env, &callback)
    compile
    call(env, &callback)
  end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant