my program displays information about items from the database when I just type their name.
It works fine for IDs and most names except when the name contains a dot.
match 'show/:name' => 'show#displayinfo'
In the controller I have:
@details = Description.where(:name => params[:name] ).first
Along with conditions on what to do if name was not found
When I type something like ../show/Ruby – it works fine
but ../show/a.b displays an empty page and no errors except this in the development log:
Processing by ShowController#displayinfo as
Parameters: {"name"=>"a"}
If I type ../show/a this works as expected, no errors, no empty views.
Any way to solve this except renaming the items in the database?
From the manual
should do it.