
Research
/Security News
Fake imToken Chrome Extension Steals Seed Phrases via Phishing Redirects
Mixed-script homoglyphs and a lookalike domain mimic imToken’s import flow to capture mnemonics and private keys.
custom_error_message
Advanced tools
This plugin gives you the option to not have your custom validation error message prefixed with the attribute name. Ordinarily, if you have, say:
validates_acceptance_of :accepted_terms, :message => 'Please accept the terms of service'
You'll get the following error message:
Accepted terms Please accept the terms of service
This plugin allows you to omit the attribute name for specific messages. All you have to do is begin the message with a '^' character. Example:
validates_acceptance_of :accepted_terms, :message => '^Please accept the terms of service'
Nigel Ramsay added the ability to specify a proc to generate the message.
validates_presence_of :assessment_answer_option_id,
:message => Proc.new { |aa| "#{aa.label} (#{aa.group_label}) is required" }
which gives an error message like: Rate (Accuracy) is required
Redefine the ActiveRecord::Errors::full_messages method: Returns all the full error messages in an array. 'Base' messages are handled as usual. Non-base messages are prefixed with the attribute name as usual UNLESS (1) they begin with '^' in which case the attribute name is omitted. E.g. validates_acceptance_of :accepted_terms, :message => '^Please accept the terms of service' (2) the message is a proc, in which case the proc is invoked on the model object. E.g. validates_presence_of :assessment_answer_option_id, :message => Proc.new { |aa| "#{aa.label} (#{aa.group_label}) is required" } which gives an error message like: Rate (Accuracy) is required
http://rubyforge.org/projects/custom-error-message/
Please send bug reports, patches and feedback to David Easley at easleydp@gmail.com
FAQs
Unknown package
We found that custom_error_message demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Mixed-script homoglyphs and a lookalike domain mimic imToken’s import flow to capture mnemonics and private keys.

Security News
Latio’s 2026 report recognizes Socket as a Supply Chain Innovator and highlights our work in 0-day malware detection, SCA, and auto-patching.

Company News
Join Socket for live demos, rooftop happy hours, and one-on-one meetings during BSidesSF and RSA 2026 in San Francisco.