Giter Site home page Giter Site logo

qy_wechat's Issues

两个不同的套件,第一个套件的应用发送消息正常,第二个套件下的应用就报一下错误

MultiXml::ParseError (Start tag expected, '<' not found):
multi_xml (0.5.5) lib/multi_xml/parsers/nokogiri.rb:15:in parse' multi_xml (0.5.5) lib/multi_xml.rb:138:inparse'
/home/deploy/xiaoshouke/shared/bundle/ruby/2.1.0/bundler/gems/qy_wechat-31d0c92ad14e/app/controllers/qy_wechat/qy_wechat_controller.rb:32:in setup_wechat_message' activesupport (4.1.8) lib/active_support/callbacks.rb:424:inblock in make_lambda'
activesupport (4.1.8) lib/active_support/callbacks.rb:143:in call' activesupport (4.1.8) lib/active_support/callbacks.rb:143:inblock in halting_and_conditional'
activesupport (4.1.8) lib/active_support/callbacks.rb:149:in call' activesupport (4.1.8) lib/active_support/callbacks.rb:149:inblock in halting_and_conditional'
activesupport (4.1.8) lib/active_support/callbacks.rb:86:in call' activesupport (4.1.8) lib/active_support/callbacks.rb:86:inrun_callbacks'
actionpack (4.1.8) lib/abstract_controller/callbacks.rb:19:in process_action' actionpack (4.1.8) lib/action_controller/metal/rescue.rb:29:inprocess_action'
actionpack (4.1.8) lib/action_controller/metal/instrumentation.rb:31:in block in process_action' activesupport (4.1.8) lib/active_support/notifications.rb:159:inblock in instrument'
activesupport (4.1.8) lib/active_support/notifications/instrumenter.rb:20:in instrument' activesupport (4.1.8) lib/active_support/notifications.rb:159:ininstrument'
actionpack (4.1.8) lib/action_controller/metal/instrumentation.rb:30:in process_action' actionpack (4.1.8) lib/action_controller/metal/params_wrapper.rb:250:inprocess_action'
activerecord (4.1.8) lib/active_record/railties/controller_runtime.rb:18:in process_action' actionpack (4.1.8) lib/abstract_controller/base.rb:136:inprocess'
actionview (4.1.8) lib/action_view/rendering.rb:30:in process' actionpack (4.1.8) lib/action_controller/metal.rb:196:indispatch'
actionpack (4.1.8) lib/action_controller/metal/rack_delegation.rb:13:in dispatch' actionpack (4.1.8) lib/action_controller/metal.rb:232:inblock in action'
actionpack (4.1.8) lib/action_dispatch/routing/route_set.rb:82:in call' actionpack (4.1.8) lib/action_dispatch/routing/route_set.rb:82:indispatch'
actionpack (4.1.8) lib/action_dispatch/routing/route_set.rb:50:in call' actionpack (4.1.8) lib/action_dispatch/journey/router.rb:73:inblock in call'
actionpack (4.1.8) lib/action_dispatch/journey/router.rb:59:in each' actionpack (4.1.8) lib/action_dispatch/journey/router.rb:59:incall'
actionpack (4.1.8) lib/action_dispatch/routing/route_set.rb:678:in call' railties (4.1.8) lib/rails/engine.rb:514:incall'
railties (4.1.8) lib/rails/railtie.rb:194:in public_send' railties (4.1.8) lib/rails/railtie.rb:194:inmethod_missing'
actionpack (4.1.8) lib/action_dispatch/journey/router.rb:73:in block in call' actionpack (4.1.8) lib/action_dispatch/journey/router.rb:59:ineach'
actionpack (4.1.8) lib/action_dispatch/journey/router.rb:59:in call' actionpack (4.1.8) lib/action_dispatch/routing/route_set.rb:678:incall'
simple_captcha2 (0.3.2) lib/simple_captcha/middleware.rb:26:in call' rack (1.5.2) lib/rack/etag.rb:23:incall'
rack (1.5.2) lib/rack/conditionalget.rb:35:in call' rack (1.5.2) lib/rack/head.rb:11:incall'
remotipart (1.2.1) lib/remotipart/middleware.rb:27:in call' actionpack (4.1.8) lib/action_dispatch/middleware/params_parser.rb:27:incall'
actionpack (4.1.8) lib/action_dispatch/middleware/flash.rb:254:in call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:incontext'
rack (1.5.2) lib/rack/session/abstract/id.rb:220:in call' actionpack (4.1.8) lib/action_dispatch/middleware/cookies.rb:560:incall'
activerecord (4.1.8) lib/active_record/query_cache.rb:36:in call' activerecord (4.1.8) lib/active_record/connection_adapters/abstract/connection_pool.rb:621:incall'
actionpack (4.1.8) lib/action_dispatch/middleware/callbacks.rb:29:in block in call' activesupport (4.1.8) lib/active_support/callbacks.rb:82:inrun_callbacks'
actionpack (4.1.8) lib/action_dispatch/middleware/callbacks.rb:27:in `call'

Unknown column 'qy_secret_key.qy_secret_key' in 'where clause': SELECT `user_apps`.* FROM `user_apps` WHERE `qy_secret_key`.`qy_secret_key` = '2222' LIMIT 1

UserApp Load (0.6ms) SELECT user_apps.* FROM user_apps WHERE qy_secret_key.qy_secret_key = '2222' LIMIT 1
Mysql2::Error: Unknown column 'qy_secret_key.qy_secret_key' in 'where clause': SELECT user_apps.* FROM user_apps WHERE qy_secret_key.qy_secret_key = '2222' LIMIT 1
Completed 500 Internal Server Error in 3ms

ActiveRecord::StatementInvalid (Mysql2::Error: Unknown column 'qy_secret_key.qy_secret_key' in 'where clause': SELECT user_apps.* FROM user_apps WHERE qy_secret_key.qy_secret_key = '2222' LIMIT 1):
activerecord (4.1.8) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:303:in query' activerecord (4.1.8) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:303:inblock in execute'
activerecord (4.1.8) lib/active_record/connection_adapters/abstract_adapter.rb:373:in block in log' activesupport (4.1.8) lib/active_support/notifications/instrumenter.rb:20:ininstrument'
activerecord (4.1.8) lib/active_record/connection_adapters/abstract_adapter.rb:367:in log' activerecord (4.1.8) lib/active_record/connection_adapters/abstract_mysql_adapter.rb:303:inexecute'
activerecord (4.1.8) lib/active_record/connection_adapters/mysql2_adapter.rb:228:in execute' activerecord (4.1.8) lib/active_record/connection_adapters/mysql2_adapter.rb:232:inexec_query'
activerecord (4.1.8) lib/active_record/connection_adapters/mysql2_adapter.rb:240:in select' activerecord (4.1.8) lib/active_record/connection_adapters/abstract/database_statements.rb:24:inselect_all'
activerecord (4.1.8) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in block in select_all' activerecord (4.1.8) lib/active_record/connection_adapters/abstract/query_cache.rb:83:incache_sql'
activerecord (4.1.8) lib/active_record/connection_adapters/abstract/query_cache.rb:68:in select_all' activerecord (4.1.8) lib/active_record/querying.rb:39:infind_by_sql'
activerecord (4.1.8) lib/active_record/relation.rb:611:in exec_queries' activerecord (4.1.8) lib/active_record/relation.rb:493:inload'
activerecord (4.1.8) lib/active_record/relation.rb:238:in to_a' activerecord (4.1.8) lib/active_record/relation/finder_methods.rb:460:infind_take'
activerecord (4.1.8) lib/active_record/relation/finder_methods.rb:98:in take' activerecord (4.1.8) lib/active_record/relation/finder_methods.rb:104:intake!'
activerecord (4.1.8) lib/active_record/relation/finder_methods.rb:87:in find_by!' activerecord (4.1.8) lib/active_record/querying.rb:7:infind_by!'
activerecord (4.1.8) lib/active_record/dynamic_matchers.rb:70:in find_by_qy_secret_key!' activerecord (4.1.8) lib/active_record/dynamic_matchers.rb:24:inmethod_missing'
/Users/zhangqinjian/.rvm/gems/ruby-2.1.4@rails418/bundler/gems/qy_wechat-a019c223bc3c/app/controllers/qy_wechat/qy_wechat_controller.rb:68:in `setup_qy_app'

find_by_qy_secret_key!(qy_secret_key: qy_secret_key)

同步gem后,启动报错

gems/qy_wechat-7f84bc2ba134/app/controllers/qy_wechat/qy_wechat_controller.rb:8:in <class:QyWechatController>': undefined methodbefore_action' for QyWechat::QyWechatController:Class (NoMethodError)

执行rails g qy_wechat:migration QyAccount时

rails g qy_wechat:migration QyAccount
/Users/zhangqinjian/.rvm/gems/ruby-1.9.3-p429@demo_weixin/bundler/gems/qy_wechat-36ce6a78ce4d/app/controllers/qy_wechat/qy_wechat_controller.rb:8:in class:QyWechatController': undefined methodbefore_action' for QyWechat::QyWechatController:Class (NoMethodError)

rails版本是 gem 'rails', '3.2.12'

error,查询方法,版本的问题

activerecord (3.2.13) lib/active_record/dynamic_matchers.rb:55:in method_missing' /Users/zhangqinjian/.rvm/gems/[email protected]/bundler/gems/qy_wechat-bdd4f6bfb87c/app/controllers/qy_wechat/qy_wechat_controller.rb:68:insetup_qy_app'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.