Skip to content

Instantly share code, notes, and snippets.

@RudyOnRails
Created September 19, 2012 16:57
Show Gist options
  • Save RudyOnRails/3750772 to your computer and use it in GitHub Desktop.
Save RudyOnRails/3750772 to your computer and use it in GitHub Desktop.
blog comment I couldn't post, but wanted to share!
Thanks! This helped me understand nested resource needs in forms! Still have more controller methods to update but got the hang of it. Hopefully in the future I will nest resources from the beginning so that the generators set up things magically!
Just a heads up on this error I got when trying to comment on your blog:
http://angry-fly.com/wp-comments-post.php
ERROR: Could not read CAPTCHA token file.
There is a problem with the directory /si-captcha-for-wordpress/captcha/temp/.
Directory Unwritable (fix permissions). Permissions are: 0755 Fixing this may require assigning 0755 permissions or higher (e.g. 0777 on some hosts. Try 0755 first, because 0777 is sometimes too much and will not work.) Fixing the actual problem is recommended, but you can uncheck this setting on the si captcha options page: "Use CAPTCHA without PHP session" and the captcha will work this way just fine (as long as PHP sessions are working).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment