I have the following route:

  get 'users/:user_id/:name', to: 'profiles#show',
    :constraints => { :name => /[a-zA-Z0-9_]+$/ }, as: 'user_profile'

Which produces the error:

Regexp anchor characters are not allowed in routing requirements: /[a-zA-Z0-9_]+$/

So I get that the ^ character isn't allowed, but not sure what character is producing this particular routing error.

Edit
Report