" />
开发者

AbstractController::ActionNotFound (The action '162e9db178183d33822a3b00b5aed793b1a37971' could not be found for SimpleCaptchaController

Hello I am using Simple captcha plugin in Rails3. <%= show_simple_captcha(:label => "human authentication") %>

I am using the above code in my view file but in the logs I am getting this error.

AbstractController::ActionNotFound (The action '162e9db178183d33822a3b00b5aed793b1a37971' could not be found for SimpleCaptchaController):

Can any body help in this problem.

In routes 开发者_StackOverflowI am doing

map.simple_captcha '/simple_captcha/:action', :controller => 'simple_captcha'


You Missed :action=>"your action name" in routes Add that and unknown Action problem will be resolved

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

But if you also want to send some params to action add them too like if I also want to send "id" then route will be

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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜