`
mathsfan
  • 浏览: 568131 次
  • 性别: Icon_minigender_1
  • 来自: 浙江省杭州市
社区版块
存档分类
最新评论

UnknownAction (No action responded to...(原)

PHP 
阅读更多
今天在结合live search和进度提示做的时候遇到了这样一个错误:
ActionController::UnknownAction (No action responded to auto_complete_for_product_aid):

这里找到一篇好象问题有点相象,不过仔细一看也不完全一样。我是在搜索过一次以后再接着去搜索时其自动完成功能出现的问题,如果不是接着就去第二次搜索而是刷新action或者点到分页的下一页之类后去搜的话是没有问题的。而且搜索过一次以后再接着去搜索其自动完成功能也并不是不可用的,只不过出现结果的一瞬间后就会出现这个错误。
试着看了下日志development.log文件,发现了问题所在,它传过去的action居然是auto_complete_for_product_aid,而不是我代码中的:action=>'autocomplete_aid':
Parameters: {"product"=>{"aid"=>"1"}, "action"=>"auto_complete_for_product_aid", "controller"=>"product"}

这样一来,我干脆把代码中的action改为auto_complete_for_product_aid了,一试,问题解决
PS:以前从来不去看日志文件的,看来学会分析日志文件也是很重要的啊```
分享到:
评论

相关推荐

    Programming Active Server Pages(CHM).rar

    When Microsoft first responded to the demand for Internet development tools, products were primitive by any stretch of the imagination. In fact, Web developers joked that their favorite development ...

    cppcheck source code

    cppcheck source code

    mc-minio客户端(linux)

    mc-minio客户端(linux)

    Practical C++ Design_ from programming to architecture-Apress (2018)

    However, I have typically responded with the rebuttal that I felt I had nothing novel to present. Being a largely self-taught programmer, I have always been able to rattle off a long list of books ...

    Microsoft Exchange Server 2007 with SP1 Tony Redmond's Guide

    Over one hundred people responded. That is over one thousand years of experience in the design, deployment, and support of Exchange. It is a great base to build best practice upon, and the people at ...

    Feedback Control of Dynamic Systems

    For this edition, we have responded to a survey of users by adding some material (for example, gears in Chapter 2) and moved other little-used material from the printed book (for example, digital ...

    Incident Response and Computer Forensics 2nd ed.7z

    computer intrusion we have responded to was followed by credit card fraud, extortion, or fraudulent purchases of merchandise by thieves who had obtained valid customer credentials on e-commerce sites....

    The Start-up J Curve (.epub)

    Entrepreneurs who have read early drafts of The Start-Up J Curve responded, “I wish I had this book years ago.” A startup unfolds in a predictable pattern; the more aware entrepreneurs are of this...

    人力资源外文翻译 Human resource management (HRM)

    As a sample, 46 scheduled banks were contacted, of which 38 responded. The HRM practices selected for the research study were selection, training, performance appraisal system, compensation system ...

    LCTF软件备份VariSpec™ Liquid Crystal Tunable Filters

    This was not handled properly, so if a call was made to VsOpen when no VariSpec was present, but a later call was made when a filter was present, the latter would fail. b) VsGui added check of which...

    Human Insula in Emotion

    The posterior insula showed auditory responses that resemble those observed in Heschl’s gyrus, whereas the anterior insula (AI) responded to the emotional contents of the auditory stimuli in a ...

    GSM, GPRS AND EDGE Performance

    responded. The Federal Communications Commission and major industry players, like AT&T and Motorola, specified America’s first public mobile radio telephone system, AMPS (Advanced Mobile Telephone ...

    vue打包npm run build时候界面报错的解决

    用coding-pages打开后显示Failed to load resource: the server responded with a status of 404 (Not Found), 解决方案: 方案一: 找到config里的index.js,打开修改assetsPublicPath 为“./” 方案二: 或者把...

    FT Report - Investing In China

    Unlike the experience of Korea and Japan, China has moved much more quickly to open many of its business sectors, while consumers have responded enthusiastically to international brands.

    f5 BIGIP V9 Full Proxy定义_WhatdoesFullProxyMean

    We’ve gone out with our full proxy messaging for v9 and NS has responded by claiming that they are a full proxy too. Currently, our FSEs are not equipped to defend our position and point out the ...

    webservice-ajax

    <br> return string.Format("Service responded to {0} at {1}", callerName, DateTime.Now.ToString()); } Configuring ASP.Net Application ASP.Net applications web.config file also has to be ...

    Kaggle event推荐比赛思路.pdf

    Event Recommendation Engine Challenge:预测用户是否会对某个活动感兴趣,based on events they've responded to in the past user demographic information what events they've seen and clicked on in our app ...

    CSIsurvey2008

    CSI Computer Crime & Security Survey The latest results from the longest-running project of its kind By Robert Richardson, CSI Director ...security professionals responded. Their answers are inside…

    Reporting with Microsoft SQL Server 2012 报表开发指南

    Reporting with Microsoft SQL Server 2012 报表开发指南 PDF版 Creating reports is natural in any business, and there are many Microsoft products for ... Microsoft responded to this need with Power View.

    Ajax报错400的参考解决办法

    Failed to load resource: the server responded with a status of 400 (Bad Request) 报错代码为400的错误的原因:基本上都是前台传的数据格式不正确造成的,但是这个格式如何不正确,就得看如何理解这个数据到底是...

Global site tag (gtag.js) - Google Analytics