开发者

Rails routing by anchor identifier

开发者 https://www.devze.com 2023-02-23 10:04 出处:网络
Hey I\'m looking for how to define a route under t开发者_JS百科he anchor identifier ie: match \'/#/pages/home\' => \'pages#home\'

Hey I'm looking for how to define a route under t开发者_JS百科he anchor identifier ie:

match '/#/pages/home' => 'pages#home'

or

match '/#/posts/:id' => 'posts#get'


# is a special character and you cannot really do that. But even if you could, why would you want to ?

0

精彩评论

暂无评论...
验证码 换一张
取 消