search for: simple_captcha_valid

Displaying 1 result from an estimated 1 matches for "simple_captcha_valid".

2009 Aug 16
5
any help with captcha in my comments ?
...quot;} SyntaxError (/Users/webstic/Sites/weblog/app/controllers/comments_controller.rb:11: syntax error, unexpected kELSE, expecting kEND else ^): this is my code: class CommentsController < ApplicationController include SimpleCaptcha::ControllerHelpers def create if simple_captcha_valid? @post = Post.find(params[:post_id]) @comment = @post.comments.create!(params[:comment]) respond_to do |format| format.html { redirect_to @post } format.js else flash[:notice] = "please right down the image verification" end end end end...