Rails Bad Request Bad Uri Due to Curly Brackets

时间:2015-06-25 18:26:37

标签: ruby-on-rails ruby-on-rails-3 ruby-on-rails-4 webrick

I need my url to allow curly brackets. Like so

http://localhost:3000/?target={target_id}

The reason for this is that the {target_id} param will be replaced later by a third party site. I will not read that parameter I just need the site to load when the url looks this way.

currently I get this messege

Bad Request

Bad URI '?target={target_id}`

How do I get WeBrick to ignore the curly brackets in the url and display the site?

0 个答案:

没有答案