Displaying 1 result from an estimated 1 matches for "kelse".
Did you mean:
else
2009 Aug 16
5
any help with captcha in my comments ?
...=>"19",
"authenticity_token"=>"B5dll5fTaDO+ZrEs1S0KkYsmK8VMzCOeDEf731w21zY=",
"captcha"=>"asdasd", "_"=>""}
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])...