0

我想获取如下所示的 url 参数。

http://localhost:3000/g/http://google.com

所以,我设置 config/routes.rb 如下

get '/g/:url' => "urls#show"

但我无法在 urls#show 中获取 params[:url]。

我怎样才能得到参数?

4

0 回答 0