This project is archived and is in readonly mode.

#5509 ✓resolved
Florian Aßmann

Problems with POSIX character classes as routing constraints

Reported by Florian Aßmann | August 31st, 2010 @ 09:59 AM | in 3.0.2

In an Ruby on Rails 3 app before RoR 3 development has got its own stable branch I used a constraint with POSIX character classes. But since then it was broken.

The defined scope and its routes:

scope 'o~', :token => /[[:alnum:]]{40}/ do
  get ':token' => 'token#show', :as => :token
  # ...

In Terminal I do:

$ rake routes
(in /Users/florian/Development/takeda)
rake aborted!
premature end of char-class: /\A[[:alnum:]\Z/

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>


Referenced by