Ruby on Rails Monday, October 31, 2011

I have a route that is something like this


match '/:token' => 'users#new'


This token is 8 digit alphanumeric. I want to add validations on it so
that it matches with the route only when there are 8 digits present in
token.

How can I do that.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment