typo in Friend
This commit is contained in:
parent
5afb97b5f7
commit
f06b645b9c
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ class Friend
|
|||
field :url
|
||||
|
||||
validates_presence_of :username, :url
|
||||
givalidates_format_of :url, :with =>
|
||||
validates_format_of :url, :with =>
|
||||
/^(http|https):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(([0-9]{1,5})?\/.*)?$/ix
|
||||
|
||||
before_validation :clean_url
|
||||
|
|
|
|||
Loading…
Reference in a new issue