新手问题 Rails --api 和 --webpack=vue

msg7086 · April 18, 2018 · Last by msg7086 replied at April 18, 2018 · 1713 hits

一起用的时候,放 vue 的空白 Landing 页应该放在哪呢。

如果放在 public/index.html 的话,script 标签会拿不到 digest 地址。

放在 view 下的话,是新建一个空白 controller 放个空白页么?

大家一般是怎么处理这个问题的?

class LandingController < ActionController::Base
  def index
  end
end

现在我是这样解决的。

Reply to ch3n

😂 总觉得 webpack+api 的组合应该是挺流行的一种做法呢……

You need to Sign in before reply, if you don't have an account, please Sign up first.