今天在结合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:以前从来不去看日志文件的,看来学会分析日志文件也是很重要的啊```
分享到:
相关推荐
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是一款开源的静态代码分析工具,主要用于C、C++编程语言。它的主要目标是检测出源代码中的潜在错误,比如未初始化的变量、空指针解引用、数组越界、悬空指针、内存泄漏等问题,从而提高软件的质量和稳定性。...
- (2) "He responded to my suggestion with a laugh/by laughing." 他对我提出的建议报以一笑。 - (3) "His illness didn't respond to treatment by drugs." 他的病对药物治疗没有反应。 - (4) "My mother ...
mc-minio客户端(linux)
13. 多亏了他们的老师(Thanks to their teacher's efforts),世界注意到了他们,并对他们作出了回应(responded with...)。 14. 这让微软感到自豪(feel proud),他们认为教育工作者是英雄(educators are ...
It highlights the ways in which the arts responded to and influencedsocietal norms. 综上所述,文章探讨了近期的GRE阅读备考题目,涉及了对简·奥斯汀作品的研究新视角。不同于1980年以前的大部分研究,现在...
例句:The company responded to the crisis by implementing emergency measures. 8. as the basis of 依据/根据:表示某个结论或决定是基于某个原因或条件的。 例句:The decision was made as the basis of the...
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....
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...
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 ...
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...
- Has she responded to your letter? 7. relief n. 缓解,减轻;解除 - in relief 如释重负;松了一口气 - to one’s relief 使某人松了一口气 示例: - He smiled in relief after finishing the difficult ...
- **respond to**:在句子"No one has responded to our application."中,"responded to"表示"回应",没有人回应我们的申请。 - **turn up**:在句子"The papers will turn up sooner or later."中,"turn up"意...
1. 动名词:常用于介词后作宾语,例如“Scientists have responded by noting...”中,“noting”就是动名词作介词“by”的宾语,表示科学家们通过记录这一方式回应。 2. 现在分词:常用于表示主动或进行的动作,如...
- `respond`:回应,如"She responded to his email promptly." - `reply`:回复,如"I'm waiting for your reply." 6. **听**: - `listen to`:听的动作,如"Listen to the teacher carefully." - `hear`:...
例如,"Scientists have responded by noting that..." 这句话中,"noting" 就是动词 "responded" 的伴随动作,作为介词 "by" 的宾语,表明科学家通过指出一种现象来回应。 其次,非谓语动词可用来表示伴随状态或...
用coding-pages打开后显示Failed to load resource: the server responded with a status of 404 (Not Found), 解决方案: 方案一: 找到config里的index.js,打开修改assetsPublicPath 为“./” 方案二: 或者把...
8. **在校表现**:阐述大学期间的学习态度和成就,包括获得奖学金的情况,如:“I am a diligent student during my college studying, and I actively responded to the call of the college, taking part in all ...