Ruby on Rails
Sunday, January 20, 2013
hi,
I have a route which says:
UUID_REGEX = /^([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{2})([0-9a-f]{2})-([0-9a-f]{12})$/
resources :checkout, :only => [:show, :create], :constraints => { :id => UUID_REGEX }
I get an error saying:
Regexp anchor characters are not allowed in routing requirements
full stacktrace is at https://gist.github.com/4578503
Why are anchor characters not allowed in routing requirements ?
I am using Rails 3.2.11
--
deepak
https://gist.github.com/deepak
-- 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.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/gFD86J5vyksJ.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment