Closed HOUYU275 closed 7 years ago
redirect_to root_url和redirect_to root_path有什么区别么,有点蒙 = =
root_url和 root_path没有啥区别,
root_url
root_path
你可以在视图或者控制中使用代码 puts root_url 查看
puts root_url
redirect_to root_url和redirect_to root_path有什么区别么,有点蒙 = =