Ruby on rails AbstractController::ActionNotFound(找不到SimpleCaptchaController的操作';162e9db178183d33822a3b00b5aed793b1a37971'

Ruby on rails AbstractController::ActionNotFound(找不到SimpleCaptchaController的操作';162e9db178183d33822a3b00b5aed793b1a37971',ruby-on-rails,Ruby On Rails,您好,我正在Rails3中使用简单的验证码插件。 “身份验证”)%%> 我在我的视图文件中使用上述代码,但在日志中我得到了这个错误 AbstractController::ActionNotFound(无法为SimpleCaptchaController找到操作“162e9db178183d33822a3b00b5aed793b1a37971”): 在这个问题上,有人能帮忙吗 在我正在做的事情中 map.simple\u captcha'/simple\u captcha/:action',:c

您好,我正在Rails3中使用简单的验证码插件。 “身份验证”)%%>

我在我的视图文件中使用上述代码,但在日志中我得到了这个错误

AbstractController::ActionNotFound(无法为SimpleCaptchaController找到操作“162e9db178183d33822a3b00b5aed793b1a37971”):

在这个问题上,有人能帮忙吗

在我正在做的事情中

map.simple\u captcha'/simple\u captcha/:action',:controller=>“simple\u captcha”

您错过了
:action=>“您的操作名称”
在路由中添加该选项,未知操作问题将得到解决

map.simple_captcha '/simple_captcha/:action', :controller => 'simple_captcha', :action=> "your action name"
但是,如果您还想发送一些参数到操作,也可以添加它们,就像我还想发送“id”一样,那么路由将是

map.simple_captcha '/simple_captcha/:action/:id', :controller => 'simple_captcha', :action=> "your action name"

检查您的:action参数,似乎设置了md5哈希。我不认为这与md5有关。。这可能是路由的问题。我知道,我告诉过你要检查你在:action参数中设置了什么