I have a search form that generates ugly but functional urls.The
controller takes nested parameters from the url like program
[program_id], or program[leader][leader_id].
So I’m trying to create a named route to make certain pre-defined
searches easier for customers to embed in their own pages.
So instead of
Id like to have
The problem is that a named Rails route won’t accept a complex symbol
in the path definition:
fails due to the brackets in parameter name symbol. Even properly
defining the symbol as
fails. Rails just won’t recognize anything other than a downcase
… and I’m not in a position to change how the controller works or
redefine the expected incoming parameters.
Thoughts or suggestions or workarounds?