On Sep 12, 1:16 pm, Misha Ognev <[email protected]> wrote: > Fred, I understand a simple_captcha conception. Now I faced with this > problem: > > I create an captcha_controller.rb, when in def generate... end I put a > code to create captcha image. > > Then I write in config/routes.rb: > > > match 'captcha' => 'captcha/generate' > You probably want 'captcha#generate' rather than 'captcha/generate' - with what you've got I think rails will look for Captcha::GenerateController instead of routing to the generate action of CaptchaController
Fred > And in _generator.html.erb: > > > <%= image_tag(captcha_path) %> > > So, I have this error, when I open 127.0.0.1:3000/captcha: > > > ActionController::RoutingError (uninitialized constant Captcha): > > Why this error occured? > > -- > Posted viahttp://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

