【发布时间】:2018-02-15 23:12:04
【问题描述】:
如果我在router.ex 中写入 (A) 和 (B) 之类的参数。
get "/index/:first/:second", IndexController, :index #(A)
get "/index/:first", IndexController, :index #(B)
应该收集哪一个(1)或(2)?
conn |>
redirect(to: index_path(conn, :index, first: first, second: second)) #(1)
conn |>
redirect(to: index_path(conn, :index, first, second: second)) #(2)
我不知道要解释的区别。
【问题讨论】: