How do i get request.uri in model in Rails?

后端 未结 6 379
一生所求
一生所求 2021-02-01 07:00
$request = request

When I write this in controller, it will work. But if i need this variable in Model or Application controller, How can i ?

6条回答
提交回复
热议问题