
Validation with attr_encrypted gem
When using `attr_encrypted` with uniqueness validation, please validate on the encrypted attributes (like enctrypted_email), instead of the original one...
Rails might set empty array to nil
In some case, though I'm not sure if this is a bug or not, Rails might set the empty array in the params variable to nil.
Just fix it like...
Nested Resource in Rails
Remember, when using nested resources, the path should be like:author_book_path(author_id, @book)and remember to set both @author and @book in your...