I have overwritten to_param method in my Category model
def to_param
name
end
And routes.rb
get '/:id' => 'categories#show', :as => :category
When name parameter doesn't contain any dots (foobar), all works right, but when it does (f.o.o.b.a.r)
I get an error No route matches [GET]. So my question is: is it possible to use dots in routing like a part of name of parameter? Or what can I do to accomplish this purpose, maybe some hooks or something. Any help is appreciated.