#32 √ hold
Joe Van Dyk

Slashes shouldn't be allowed in non-sluggable URLs

Reported by Joe Van Dyk | May 10th, 2009 @ 02:40 AM

If you use a non-sluggable friendly_id (i.e. for usernames), Rails won't recognize the route if the user enters in a username with a slash. (maybe some other characters as well?)

http://github.com/joevandyk/frie... fixes that.

Comments and changes to this ticket

  • Joe Van Dyk

    Joe Van Dyk May 10th, 2009 @ 02:40 AM

    • → Assigned user changed from “” to “Norman Clarke”
  • Norman Clarke

    Norman Clarke May 21st, 2009 @ 02:32 PM

    • → State changed from “new” to “hold”

    I don't think this is a problem that friendly_id should solve; there really are lots of other things we could want to eliminate such as periods, spaces, percent signs followed by numbers, etc. I think in this case its best to allow the application logic outside friendly_id to enforce this.

    Perhaps it would be better for FriendlyId to provide a default validation method that could optionally be used and overridden?

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

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

Friendly_id is a plugin for Ruby on Rails which allows you to work with human-friendly strings as well as numeric ids in ActiveRecord models.

People watching this ticket

You can update this ticket by sending an email to from your email client. (help)