> 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
>
> any suggestions ?
That's not syntactically correct ruby - you need to end the respond_to
block before the else
Fred
> --
> 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
-~----------~----~----~----~------~----~------~--~---