phatworx / easy_captcha Goto Github PK
View Code? Open in Web Editor NEWCaptcha-Plugin for Rails
License: MIT License
Captcha-Plugin for Rails
License: MIT License
The link for captcha image is an absolute url path. Is it necessary to have an absolute path there? Can't we have a relative url path for the same? @alexdreher , @chilian , @traxanos Could you please help me with this?
This cf01185#diff-f68d7ca69ff14c5e89e06e69172d56c1R36 doesn't do what it's supposed to.
According to e.g. rubygems/rubygems#1662 (comment), or the much older (and semi-broken) http://blog.mattwynne.net/2011/04/26/targeting-multiple-platforms-jruby-etc-with-a-rubygems-gemspec/ the gemspec is executed once (by rubygems) and then serialized.
Order model have easy_captcha
When i create order, i send ajax request for get last orders.
After this captcha updated code that is displayed does not match that in the session
Plz, help me. How do I disable update captcha?
Hi!
i get this on bundle install:
Bundler could not find compatible versions for gem "rails":
In Gemfile:
easy_captcha depends on
rails (~> 3.0.0)
rails (3.1.0.rc5)
Maybe more flexible something like: >=3.0.0 and < 3.1??
Want give color attribute a Array value, and random pick one for render.
I have an exception:
Started GET "/captcha?i=1334674239" for 127.0.0.1 at 2012-04-17 17:50:40 +0300
RuntimeError (can't modify frozen string):
actionpack (3.2.3) lib/action_dispatch/http/parameters.rb:47:in force_encoding' actionpack (3.2.3) lib/action_dispatch/http/parameters.rb:47:in
encode_params'
actionpack (3.2.3) lib/action_dispatch/http/parameters.rb:59:in block in encode_params' actionpack (3.2.3) lib/action_dispatch/http/parameters.rb:52:in
each'
actionpack (3.2.3) lib/action_dispatch/http/parameters.rb:52:in encode_params' actionpack (3.2.3) lib/action_dispatch/http/parameters.rb:12:in
parameters'
actionpack (3.2.3) lib/action_dispatch/http/filter_parameters.rb:33:in filtered_parameters' actionpack (3.2.3) lib/action_controller/metal/instrumentation.rb:21:in
process_action'
actionpack (3.2.3) lib/action_controller/metal/params_wrapper.rb:205:in process_action' actionpack (3.2.3) lib/abstract_controller/base.rb:121:in
process'
actionpack (3.2.3) lib/abstract_controller/rendering.rb:45:in process' actionpack (3.2.3) lib/action_controller/metal.rb:203:in
dispatch'
actionpack (3.2.3) lib/action_controller/metal/rack_delegation.rb:14:in dispatch' actionpack (3.2.3) lib/action_controller/metal.rb:246:in
block in action'
actionpack (3.2.3) lib/action_controller/metal.rb:232:in call' actionpack (3.2.3) lib/action_controller/metal.rb:232:in
call'
journey (1.0.3) lib/journey/router.rb:68:in block in call' journey (1.0.3) lib/journey/router.rb:56:in
each'
journey (1.0.3) lib/journey/router.rb:56:in call' actionpack (3.2.3) lib/action_dispatch/routing/route_set.rb:600:in
call'
mongoid (2.4.8) lib/rack/mongoid/middleware/identity_map.rb:33:in block in call' mongoid (2.4.8) lib/mongoid.rb:133:in
unit_of_work'
mongoid (2.4.8) lib/rack/mongoid/middleware/identity_map.rb:33:in call' sass (3.1.15) lib/sass/plugin/rack.rb:54:in
call'
actionpack (3.2.3) lib/action_dispatch/middleware/best_standards_support.rb:17:in call' rack (1.4.1) lib/rack/etag.rb:23:in
call'
...
Hi,
We've recently added easy_captcha to our Gemfile and now everytime we start a rails environment we get the following warnings:
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:44: warning: already initialized constant PercentGeometry
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:45: warning: already initialized constant AspectGeometry
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:46: warning: already initialized constant LessGeometry
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:47: warning: already initialized constant GreaterGeometry
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:48: warning: already initialized constant AreaGeometry
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:49: warning: already initialized constant MinimumGeometry
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:52: warning: already initialized constant FLAGS
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:53: warning: already initialized constant RFLAGS
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:92: warning: already initialized constant W
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:93: warning: already initialized constant H
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:94: warning: already initialized constant X
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:95: warning: already initialized constant Y
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:96: warning: already initialized constant RE
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:147: warning: already initialized constant ALIGN_TYPE_NAMES
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:152: warning: already initialized constant ANCHOR_TYPE_NAMES
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:157: warning: already initialized constant DECORATION_TYPE_NAMES
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:163: warning: already initialized constant FONT_WEIGHT_NAMES
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:170: warning: already initialized constant GRAVITY_NAMES
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:181: warning: already initialized constant PAINT_METHOD_NAMES
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:188: warning: already initialized constant STRETCH_TYPE_NAMES
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:200: warning: already initialized constant STYLE_TYPE_NAMES
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:673: warning: already initialized constant Model_Version
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:674: warning: already initialized constant Destination
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:675: warning: already initialized constant File_Format
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:676: warning: already initialized constant File_Format_Version
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:677: warning: already initialized constant Service_Identifier
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:678: warning: already initialized constant Envelope_Number
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:679: warning: already initialized constant Product_ID
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:680: warning: already initialized constant Envelope_Priority
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:681: warning: already initialized constant Date_Sent
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:682: warning: already initialized constant Time_Sent
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:683: warning: already initialized constant Coded_Character_Set
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:684: warning: already initialized constant UNO
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:685: warning: already initialized constant Unique_Name_of_Object
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:686: warning: already initialized constant ARM_Identifier
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:687: warning: already initialized constant ARM_Version
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:691: warning: already initialized constant Record_Version
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:692: warning: already initialized constant Object_Type_Reference
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:693: warning: already initialized constant Object_Name
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:694: warning: already initialized constant Title
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:695: warning: already initialized constant Edit_Status
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:696: warning: already initialized constant Editorial_Update
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:697: warning: already initialized constant Urgency
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:698: warning: already initialized constant Subject_Reference
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:699: warning: already initialized constant Category
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:700: warning: already initialized constant Supplemental_Category
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:701: warning: already initialized constant Fixture_Identifier
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:702: warning: already initialized constant Keywords
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:703: warning: already initialized constant Content_Location_Code
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:704: warning: already initialized constant Content_Location_Name
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:705: warning: already initialized constant Release_Date
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:706: warning: already initialized constant Release_Time
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:707: warning: already initialized constant Expiration_Date
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:708: warning: already initialized constant Expiration_Time
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:709: warning: already initialized constant Special_Instructions
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:710: warning: already initialized constant Action_Advised
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:711: warning: already initialized constant Reference_Service
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:712: warning: already initialized constant Reference_Date
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:713: warning: already initialized constant Reference_Number
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:714: warning: already initialized constant Date_Created
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:715: warning: already initialized constant Time_Created
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:716: warning: already initialized constant Digital_Creation_Date
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:717: warning: already initialized constant Digital_Creation_Time
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:718: warning: already initialized constant Originating_Program
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:719: warning: already initialized constant Program_Version
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:720: warning: already initialized constant Object_Cycle
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:721: warning: already initialized constant By_Line
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:722: warning: already initialized constant Author
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:723: warning: already initialized constant By_Line_Title
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:724: warning: already initialized constant Author_Position
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:725: warning: already initialized constant City
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:726: warning: already initialized constant Sub_Location
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:727: warning: already initialized constant Province
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:728: warning: already initialized constant State
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:729: warning: already initialized constant Country_Primary_Location_Code
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:730: warning: already initialized constant Country_Primary_Location_Name
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:731: warning: already initialized constant Original_Transmission_Reference
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:732: warning: already initialized constant Headline
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:733: warning: already initialized constant Credit
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:734: warning: already initialized constant Source
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:735: warning: already initialized constant Copyright_Notice
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:736: warning: already initialized constant Contact
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:737: warning: already initialized constant Abstract
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:738: warning: already initialized constant Caption
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:739: warning: already initialized constant Editor
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:740: warning: already initialized constant Caption_Writer
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:741: warning: already initialized constant Rasterized_Caption
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:742: warning: already initialized constant Image_Type
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:743: warning: already initialized constant Image_Orientation
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:744: warning: already initialized constant Language_Identifier
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:745: warning: already initialized constant Audio_Type
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:746: warning: already initialized constant Audio_Sampling_Rate
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:747: warning: already initialized constant Audio_Sampling_Resolution
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:748: warning: already initialized constant Audio_Duration
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:749: warning: already initialized constant Audio_Outcue
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:750: warning: already initialized constant ObjectData_Preview_File_Format
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:751: warning: already initialized constant ObjectData_Preview_File_Format_Version
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:752: warning: already initialized constant ObjectData_Preview_Data
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:756: warning: already initialized constant Size_Mode
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:757: warning: already initialized constant Max_Subfile_Size
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:758: warning: already initialized constant ObjectData_Size_Announced
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:759: warning: already initialized constant Maximum_ObjectData_Size
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:763: warning: already initialized constant Subfile
/Users/****/.rvm/gems/ruby-1.9.3-p327/gems/rmagick-2.13.2/lib/rmagick.rb:767: warning: already initialized constant Confirmed_ObjectData_Size
The relevant part of our Gemfile:
#.
#.
#.
gem 'easy_captcha'
gem 'rmagick'
#.
#.
#.
Is there any way to get rid of them?
Thanks!
I have forked this and am working to improve its code quality and test coverage, as well as address some of the issues.
https://github.com/K-and-R/easy_captcha
https://rubygems.org/gems/kandr-easy_captcha
As my fork is a fork, I cannot create issues there. I wish to keep it as a connected fork rather than delete the fork and recreate it as a separately cloned repo.
Should anyone have any changes that are needed, please feel free to tag me or message directly.
undefined local variable or method `check_destroyed' for #<Magick::Image:0x48097a51>
Today, I found Captcha verify not effect when the captcha is wrong(My code logic is right, before this, it can work).
So, I check the Rails logs, I found Memcached was crashed, and when I restart it, Captcha verify has working.
Looks like when easy_captcha connect read cache failed , it will skip validation.
Just setup a plain rails app with rails 5.1 .... and easy_captcha.
But there is an error: undefined method `after_filter' for ApplicationController:Class Did you mean? after_action
when nagivating to something defined in my routes. Please fix that issue.
Why valid_captcha? method always return false?
There should be an option to disable the validation entirely when testing (make it always return true) in the test environment or in the config file. I'm using Rspec.
For now in my controller specs i just use "controller.stub(:captcha_valid?).and_return(true)" but for some reason that doesn't work in my feature spec ... and I tried writing it in many ways:
allow(UserRegistrationController).to receive(:captcha_valid?).and_return true
UserRegistrationController.stub(:captcha_valid?).and_return(true)
... not working.
Some help would be greatly appreciated.
Thank you,
Dan
Hi folks,
after upgrade to Rails 3.2.0 my application stopped rendering captchas. I found it was returning HTTP error code 500.
Here is a small workaround:
match "captcha" => EasyCaptcha::Controller, :action => "captcha", :via => :get
I hope it will help somebody.
-ms
Rails 3.2.11
No sesseion[:captcha]
Getting this error after install using Rails 4.2.2 and the devise_security_extension gem
Extracted source (around line #176):
prefixes = prefixes.presence
parts = name.to_s.split('/')
parts.shift if parts.first.empty?
name = parts.pop
return name, prefixes || [""] if parts.empty?
actionview (4.2.2) lib/action_view/lookup_context.rb:176:in normalize_name' actionview (4.2.2) lib/action_view/lookup_context.rb:151:in
args_for_lookup'
actionview (4.2.2) lib/action_view/lookup_context.rb:130:in exists?' actionview (4.2.2) lib/action_view/view_paths.rb:13:in
template_exists?'
actionpack (4.2.2) lib/action_controller/metal/implicit_render.rb:14:in method_for_action' actionpack (4.2.2) lib/abstract_controller/base.rb:230:in
_find_action_name'
actionpack (4.2.2) lib/abstract_controller/base.rb:131:in process' actionview (4.2.2) lib/action_view/rendering.rb:30:in
process'
actionpack (4.2.2) lib/action_controller/metal.rb:196:in dispatch' actionpack (4.2.2) lib/action_controller/metal/rack_delegation.rb:13:in
dispatch'
actionpack (4.2.2) lib/action_controller/metal.rb:237:in block in action' actionpack (4.2.2) lib/action_controller/metal.rb:227:in
call'
actionpack (4.2.2) lib/action_controller/metal.rb:227:in call' actionpack (4.2.2) lib/action_dispatch/routing/mapper.rb:51:in
serve'
actionpack (4.2.2) lib/action_dispatch/journey/router.rb:43:in block in serve' actionpack (4.2.2) lib/action_dispatch/journey/router.rb:30:in
each'
actionpack (4.2.2) lib/action_dispatch/journey/router.rb:30:in serve' actionpack (4.2.2) lib/action_dispatch/routing/route_set.rb:819:in
call'
warden (1.2.3) lib/warden/manager.rb:35:in block in call' warden (1.2.3) lib/warden/manager.rb:34:in
catch'
warden (1.2.3) lib/warden/manager.rb:34:in call' rack (1.6.4) lib/rack/etag.rb:24:in
call'
rack (1.6.4) lib/rack/conditionalget.rb:25:in call' rack (1.6.4) lib/rack/head.rb:13:in
call'
actionpack (4.2.2) lib/action_dispatch/middleware/params_parser.rb:27:in call' actionpack (4.2.2) lib/action_dispatch/middleware/flash.rb:260:in
call'
rack (1.6.4) lib/rack/session/abstract/id.rb:225:in context' rack (1.6.4) lib/rack/session/abstract/id.rb:220:in
call'
actionpack (4.2.2) lib/action_dispatch/middleware/cookies.rb:560:in call' activerecord (4.2.2) lib/active_record/query_cache.rb:36:in
call'
activerecord (4.2.2) lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in call' activerecord (4.2.2) lib/active_record/migration.rb:378:in
call'
actionpack (4.2.2) lib/action_dispatch/middleware/callbacks.rb:29:in block in call' activesupport (4.2.2) lib/active_support/callbacks.rb:88:in
call'
activesupport (4.2.2) lib/active_support/callbacks.rb:88:in _run_callbacks' activesupport (4.2.2) lib/active_support/callbacks.rb:776:in
_run_call_callbacks'
activesupport (4.2.2) lib/active_support/callbacks.rb:81:in run_callbacks' actionpack (4.2.2) lib/action_dispatch/middleware/callbacks.rb:27:in
call'
actionpack (4.2.2) lib/action_dispatch/middleware/reloader.rb:73:in call' actionpack (4.2.2) lib/action_dispatch/middleware/remote_ip.rb:78:in
call'
actionpack (4.2.2) lib/action_dispatch/middleware/debug_exceptions.rb:17:in call' web-console (2.1.3) lib/web_console/middleware.rb:37:in
call'
actionpack (4.2.2) lib/action_dispatch/middleware/show_exceptions.rb:30:in call' railties (4.2.2) lib/rails/rack/logger.rb:38:in
call_app'
railties (4.2.2) lib/rails/rack/logger.rb:20:in block in call' activesupport (4.2.2) lib/active_support/tagged_logging.rb:68:in
block in tagged'
activesupport (4.2.2) lib/active_support/tagged_logging.rb:26:in tagged' activesupport (4.2.2) lib/active_support/tagged_logging.rb:68:in
tagged'
railties (4.2.2) lib/rails/rack/logger.rb:20:in call' actionpack (4.2.2) lib/action_dispatch/middleware/request_id.rb:21:in
call'
rack (1.6.4) lib/rack/methodoverride.rb:22:in call' rack (1.6.4) lib/rack/runtime.rb:18:in
call'
activesupport (4.2.2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in call' rack (1.6.4) lib/rack/lock.rb:17:in
call'
actionpack (4.2.2) lib/action_dispatch/middleware/static.rb:113:in call' rack (1.6.4) lib/rack/sendfile.rb:113:in
call'
railties (4.2.2) lib/rails/engine.rb:518:in call' railties (4.2.2) lib/rails/application.rb:164:in
call'
rack (1.6.4) lib/rack/lock.rb:17:in call' rack (1.6.4) lib/rack/content_length.rb:15:in
call'
rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
Params transformed into Encoding:ASCII-8BIT.
I want to use it in my rails4 project,but I received an error about empty error:
Started GET "/captcha?i=1421717119" for ::1 at 2015-01-20 09:25:20 +0800
NoMethodError (undefined method `empty?' for nil:NilClass):
actionview (4.2.0.rc2) lib/action_view/lookup_context.rb:176:in `normalize_name'
actionview (4.2.0.rc2) lib/action_view/lookup_context.rb:151:in `args_for_lookup'
actionview (4.2.0.rc2) lib/action_view/lookup_context.rb:130:in `exists?'
actionview (4.2.0.rc2) lib/action_view/view_paths.rb:13:in `template_exists?'
actionpack (4.2.0.rc2) lib/action_controller/metal/implicit_render.rb:14:in `method_for_action'
actionpack (4.2.0.rc2) lib/abstract_controller/base.rb:230:in `_find_action_name'
actionpack (4.2.0.rc2) lib/abstract_controller/base.rb:131:in `process'
actionview (4.2.0.rc2) lib/action_view/rendering.rb:30:in `process'
actionpack (4.2.0.rc2) lib/action_controller/metal.rb:195:in `dispatch'
actionpack (4.2.0.rc2) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
actionpack (4.2.0.rc2) lib/action_controller/metal.rb:236:in `block in action'
actionpack (4.2.0.rc2) lib/action_controller/metal.rb:226:in `call'
actionpack (4.2.0.rc2) lib/action_controller/metal.rb:226:in `call'
actionpack (4.2.0.rc2) lib/action_dispatch/routing/mapper.rb:51:in `serve'
actionpack (4.2.0.rc2) lib/action_dispatch/journey/router.rb:43:in `block in serve'
actionpack (4.2.0.rc2) lib/action_dispatch/journey/router.rb:30:in `each'
actionpack (4.2.0.rc2) lib/action_dispatch/journey/router.rb:30:in `serve'
actionpack (4.2.0.rc2) lib/action_dispatch/routing/route_set.rb:802:in `call'
rack-mobile-detect (0.4.0) lib/rack/mobile-detect.rb:164:in `call'
rack (1.6.0) lib/rack/etag.rb:24:in `call'
rack (1.6.0) lib/rack/conditionalget.rb:25:in `call'
rack (1.6.0) lib/rack/head.rb:13:in `call'
actionpack (4.2.0.rc2) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
actionpack (4.2.0.rc2) lib/action_dispatch/middleware/flash.rb:260:in `call'
rack (1.6.0) lib/rack/session/abstract/id.rb:225:in `context'
rack (1.6.0) lib/rack/session/abstract/id.rb:220:in `call'
actionpack (4.2.0.rc2) lib/action_dispatch/middleware/cookies.rb:560:in `call'
actionpack (4.2.0.rc2) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (4.2.0.rc2) lib/active_support/callbacks.rb:88:in `call'
activesupport (4.2.0.rc2) lib/active_support/callbacks.rb:88:in `_run_callbacks'
activesupport (4.2.0.rc2) lib/active_support/callbacks.rb:734:in `_run_call_callbacks'
activesupport (4.2.0.rc2) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (4.2.0.rc2) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (4.2.0.rc2) lib/action_dispatch/middleware/reloader.rb:73:in `call'
actionpack (4.2.0.rc2) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
web-console (2.0.0) lib/action_dispatch/debug_exceptions.rb:18:in `middleware_call'
web-console (2.0.0) lib/action_dispatch/debug_exceptions.rb:13:in `call'
actionpack (4.2.0.rc2) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.2.0.rc2) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.2.0.rc2) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.2.0.rc2) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.2.0.rc2) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.2.0.rc2) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.2.0.rc2) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.2.0.rc2) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.6.0) lib/rack/methodoverride.rb:22:in `call'
rack (1.6.0) lib/rack/runtime.rb:18:in `call'
activesupport (4.2.0.rc2) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
rack (1.6.0) lib/rack/lock.rb:17:in `call'
actionpack (4.2.0.rc2) lib/action_dispatch/middleware/static.rb:113:in `call'
rack (1.6.0) lib/rack/sendfile.rb:113:in `call'
railties (4.2.0.rc2) lib/rails/engine.rb:518:in `call'
railties (4.2.0.rc2) lib/rails/application.rb:164:in `call'
rack (1.6.0) lib/rack/lock.rb:17:in `call'
rack (1.6.0) lib/rack/content_length.rb:15:in `call'
rack (1.6.0) lib/rack/handler/webrick.rb:89:in `service'
如题!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.