RailsCasts Pro episodes are now free!

Learn more or hide this

Ahmad Hasan Khan's Profile

GitHub User: ahmadhasankhan

Site: http://about.me/ahmadhasankhan

Comments by Ahmad Hasan Khan

Avatar

When i am running this command on rails 4:

rake mercury_engine:install:migrations

Then I am getting this exception:

rake aborted!
Don't know how to build task 'mercury_engine:install:migrations' (see --tasks)

Does anyone know how to solve it ?

Avatar

I am trying to validate subdomain in Rails 4 but getting exception, can anyone plz help me ?

validates :subdomain, format: { with: /^[a-zA-Z0-9][a-zA-Z0-9.-]+[a-zA-Z0-9]$/ }

Error Message

ArgumentError at /

The provided regular expression is using multiline anchors (^ or $), which may present a security risk. Did you mean to use \A and \z, or forgot to add the :multiline => true option?