themactep.com

A home of miscellaneous projects by Paul Philippov.

Notes

How to validate feed URL in Rails

validates :feed_url, format: {with: /^(#{URI::regexp(%w(feed http https))})$/}