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
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
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,
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|
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 =
5 matches
Mail list logo