0
我想成立一個路線:Rails的路線:要求
atypes = [:culture, :personality, :communication] map.with_options(:path_prefix => ':atype', :requirements => {:atype => atypes.include?(:atype)}) do |assessment| ... end
我一直沒能找到如何實現任何文件:一個驗證一個特定的參數包含在一個陣列的陣列上的要求這個。任何幫助,將不勝感激。