[Rails] Re: any help with captcha in my comments ?

2009-08-17 Thread Philip Gavrilos
def create if simple_captcha_valid? @post = Post.find(params[:post_id]) @comment = @post.comments.create!(params[:comment]) else flash[:notice] = please right down the image verification end respond_to do |format| format.html { @post.valid? ? redirect_to

[Rails] Re: any help with captcha in my comments ?

2009-08-16 Thread Frederick Cheung
  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

[Rails] Re: any help with captcha in my comments ?

2009-08-16 Thread s.ross
On Aug 16, 2009, at 3:01 PM, Philip Gavrilos wrote: this is my error: Processing ApplicationController#create (for 127.0.0.1 at 2009-08-17 00:57:56) [POST] Parameters: {comment={name=asdasd, body=asdasd}, commit=Add Comment, post_id=19,

[Rails] Re: any help with captcha in my comments ?

2009-08-16 Thread Philip Gavrilos
Steve Ross wrote: On Aug 16, 2009, at 3:01 PM, Philip Gavrilos wrote: SyntaxError 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|

[Rails] Re: any help with captcha in my comments ?

2009-08-16 Thread s.ross
On Aug 16, 2009, at 3:57 PM, Philip Gavrilos wrote: Steve Ross wrote: On Aug 16, 2009, at 3:01 PM, Philip Gavrilos wrote: SyntaxError include SimpleCaptcha::ControllerHelpers def create if simple_captcha_valid? @post = Post.find(params[:post_id]) @comment =