validation

June 14, 2015

Validate a url in Rails 4

class User < ActiveRecord::Base validates_format_of :url, :with => URI::regexp(%w(http https)) end Reference: Stackoverflow 
November 28, 2012

Website Security Measures

I would like to share my personal observations and knowledge relating website security. You can add more by commenting this post. Password Hashing Passwords and other credentials must be stored hashed in Database. Use md5() or sha1() functions. Password Renew […]
get in touch
gdpr-image
This website uses cookies to provide necessary website functionality, improve your experience and analyze our traffic. By using our website, you agree to our Privacy Policy and our cookies usage.
READ MORE