Skip to content

Instantly share code, notes, and snippets.

@modsognir
Forked from chewmanfoo/error.rb
Last active December 18, 2015 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save modsognir/5859554 to your computer and use it in GitHub Desktop.
Save modsognir/5859554 to your computer and use it in GitHub Desktop.
Completed 500 Internal Server Error in 1867ms
NoMethodError (undefined method `include?' for nil:NilClass):
app/models/user.rb:121:in `svn_password_must_be_acceptable'
...
validate :svn_password_must_be_acceptable
...
def svn_password_must_be_acceptable
if svn_password.present? && svn_password.include?(';')
errors.add(:svn_password, "must be appropriate (no punctuation etc.)")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment