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

Having an issue getting rack-honeypot working #9

Closed
keilmillerjr opened this issue Dec 14, 2012 · 5 comments
Closed

Having an issue getting rack-honeypot working #9

keilmillerjr opened this issue Dec 14, 2012 · 5 comments

Comments

@keilmillerjr
Copy link

Hello!

I am using rails 3.2.9. I added gem 'rack-honeypot' to my gemfile and ran bundler. I then added config.middleware.use "Rack::Honeypot" in envirnment.rb and got the following error:

NoMethodError (undefined method `each' for #<String:0x007fddfcd93b68>):

I also tried adding the config line to development.rb and application.rb. Both yielded the same results. Any ideas of what is happening?

Thank you.

@JDutil
Copy link
Contributor

JDutil commented Jan 15, 2013

Just hit the same issue myself. Appears to be incompatible with the latest versions of rack, which I have v1.4.4 of.

@Bastes
Copy link

Bastes commented Feb 13, 2014

Just hit it too, with rack v 1.4.0

@JDutil
Copy link
Contributor

JDutil commented Feb 13, 2014

@Bastes see #10 for my fix.

@JDutil
Copy link
Contributor

JDutil commented Feb 13, 2014

You should be able to change gemfile to:

gem 'rack-honeypot', github: 'jdutil/rack-honeypot', branch: 'fix_each_error'

In order to use my fix until this ever gets merged.

@RandieM
Copy link

RandieM commented Feb 18, 2015

I had the same problem and @JDutil 's version of the gem fixed it. Thanks!

@luigi luigi closed this as completed in 1f45844 Jan 26, 2016
luigi added a commit that referenced this issue Jan 26, 2016
Fix undefined method each error occurring on static assets. [Fix #9]
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

4 participants