We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validating URLs that include mustache fails as of 1.0.10
with_options({on: :errors}) { |r| r.validates :url, url: true, allow_blank: true, mustache: true }
http://example.com/{{mustache}}
Fails in 1.0.10, validated in 1.0.8.
The text was updated successfully, but these errors were encountered:
I don't think we support attribute mustache
Sorry, something went wrong.
I created a gist to solve this one https://gist.github.com/taf2/d899dc2de05e6df0727a146159e2563d
You can use the module as:
include Ctm::UrlWithMustache mustache_validated_url :weburl validates :weburl, url: {no_local: true}
So little extra code... but ideally it would be a feature of this gem...
validates :weburl, url: {no_local: true, mustache: :allowed}
No branches or pull requests
Validating URLs that include mustache fails as of 1.0.10
http://example.com/{{mustache}}
Fails in 1.0.10, validated in 1.0.8.
The text was updated successfully, but these errors were encountered: