You can do this using regular expression, in your case it would look like this:
# routes.rb
get '/para_:status(/:opcao1)(/:opcao2)', to: 'search#index', as: :search, constraints: { status: "(ativado|desativado)" }
Constraints option, which is a hash , where you put the parameter, pointing to the regular expression it accepts.
This expression I made is the correct one for you.
If the url is / to_activated or / to_disabled , the route is identified, and calls controller to provide continuity. If url is / para_blablabla , return page not found.