Rails Rails 有没有伪静态,有必要伪静态吗

dddx · April 22, 2016 · Last by beiersi replied at April 26, 2016 · 4406 hits

我想说的伪静态主要是这样的 xxx.xx/controller/1.html rails 有吗?

我所知道的 Thinkphp 可以实现 或者服务器配置

另: 有没有必要伪静态呢

谢谢^_^

#1 楼 @acaby 这个是我自己的!....

#4 楼 @huobazi 嗯 牛逼 如何码 让你的 link_to 点出来就是这个~~

#3 楼 @huacnlee 谢谢,同时培养 提高自己阅读英文文档的能力

#1 楼 @acaby 可不可以 link_to 点出来就是这个

Rails 设计是 REST 的,没必要伪静态

伪静态十五年前有用。现在没啥用。

link_to 'foo' , bar_path(bar , format: 'html')

可以問一下都要偽靜態了,為何不直升真靜態 cache html 檔案

default_url_options(opts = {})
  { format: 'html' }
end
You need to Sign in before reply, if you don't have an account, please Sign up first.